diff --git a/assets/images/closed-sign.svg b/assets/images/closed-sign.svg new file mode 100644 index 000000000000..b3b3482c688c --- /dev/null +++ b/assets/images/closed-sign.svg @@ -0,0 +1,10 @@ + + + + + diff --git a/src/ONYXKEYS.js b/src/ONYXKEYS.js index 4c7ea591f3ff..2c7f425c89d0 100755 --- a/src/ONYXKEYS.js +++ b/src/ONYXKEYS.js @@ -169,6 +169,9 @@ export default { // Is Keyboard shortcuts modal open? IS_SHORTCUTS_MODAL_OPEN: 'isShortcutsModalOpen', + // Is close acount modal open? + IS_CLOSE_ACCOUNT_MODAL_OPEN: 'isCloseAccountModalOpen', + // Stores information about active wallet transfer amount, selectedAccountID, status, etc WALLET_TRANSFER: 'walletTransfer', diff --git a/src/ROUTES.js b/src/ROUTES.js index 5f02858208d6..b11074ce610e 100644 --- a/src/ROUTES.js +++ b/src/ROUTES.js @@ -24,6 +24,7 @@ export default { SETTINGS_PROFILE: 'settings/profile', SETTINGS_PREFERENCES: 'settings/preferences', SETTINGS_SECURITY: 'settings/security', + SETTINGS_CLOSE: 'settings/security/closeAccount', SETTINGS_PASSWORD: 'settings/security/password', SETTINGS_ABOUT: 'settings/about', SETTINGS_APP_DOWNLOAD_LINKS: 'settings/about/app-download-links', diff --git a/src/components/ConfirmModal.js b/src/components/ConfirmModal.js index 3dcc904e65d4..2f9a5f604839 100755 --- a/src/components/ConfirmModal.js +++ b/src/components/ConfirmModal.js @@ -34,6 +34,9 @@ const propTypes = { /** Modal content text/element */ prompt: PropTypes.oneOfType([PropTypes.string, PropTypes.element]), + /** Whether we should use the success button color */ + success: PropTypes.bool, + /** Is the action destructive */ danger: PropTypes.bool, @@ -49,6 +52,7 @@ const defaultProps = { confirmText: '', cancelText: '', prompt: '', + success: true, danger: false, onCancel: () => {}, shouldShowCancelButton: true, @@ -76,7 +80,7 @@ const ConfirmModal = props => ( ) : (props.prompt)}