-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d388a6d
commit b2bacec
Showing
17 changed files
with
396 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
packages/account/src/Components/unlink-account-modal/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import UnlinkAccountModal from './unlink-account-modal.jsx'; | ||
|
||
export default UnlinkAccountModal; |
57 changes: 57 additions & 0 deletions
57
packages/account/src/Components/unlink-account-modal/unlink-account-modal.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { Button, Modal, Text, Icon } from '@deriv/components'; | ||
import { localize, Localize } from '@deriv/translations'; | ||
|
||
const UnlinkAccountModal = ({ onClose, is_open, identifier_title, onClickSendEmail }) => { | ||
const onClickUnlinkButton = () => { | ||
onClose(); | ||
onClickSendEmail(); | ||
}; | ||
|
||
return ( | ||
<Modal | ||
className={'unlink-account__modal'} | ||
is_open={is_open} | ||
has_close_icon | ||
toggleModal={onClose} | ||
width='440px' | ||
title='' | ||
> | ||
<Modal.Body> | ||
<div onClick={onClose} className='unlink-account__modal-close'> | ||
<Icon icon='IcCross' /> | ||
</div> | ||
<div className='unlink-account__modal-icon'> | ||
<Icon icon='IcEmailChanged' size={128} /> | ||
</div> | ||
<div className='unlink-account__modal-content'> | ||
<Text className='unlink-account__modal-title' weight='bold' size='s'> | ||
<Localize i18n_default_text='Change your login email' /> | ||
</Text> | ||
<Text className='unlink-account__modal-description' size='xs'> | ||
<Localize | ||
i18n_default_text="To change yout email address, you'll first need to unlink your emain address form your {{identifier_title}} account." | ||
values={{ identifier_title }} | ||
/> | ||
</Text> | ||
</div> | ||
</Modal.Body> | ||
<Modal.Footer className='unlink-account__footer'> | ||
<Button onClick={onClose} has_effect text={localize('Cancel')} secondary large /> | ||
<Button onClick={onClickUnlinkButton} has_effect primary large> | ||
<Localize i18n_default_text='Unlink from {{identifier_title}}' values={{ identifier_title }} /> | ||
</Button> | ||
</Modal.Footer> | ||
</Modal> | ||
); | ||
}; | ||
|
||
UnlinkAccountModal.prototypes = { | ||
onClose: PropTypes.func, | ||
is_open: PropTypes.bool, | ||
identifier_title: PropTypes.string, | ||
onClickSendEmail: PropTypes.func, | ||
}; | ||
|
||
export default UnlinkAccountModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
packages/components/src/components/icon/common/ic-email-changed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions
7
packages/components/src/components/icon/common/ic-email-verified.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.