forked from binary-com/deriv-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mahdiyeh/Feature: add social unlinking (binary-com#4854)
* add wrong typo part to the sent-email-modal and add live chat * change Password to Emails and passwords * add change email component to Emails and passwors * add email reset modal * add reset email modal * add success email modal * add redirection of social_email_change modal * fix responsive mode * fix sendEmailModal * add verification_code for social_emil_change * get email from url * add condition for change email part for social and non-social account * fix change_email modal when get invalidToken error * add change_email_actions to ignore list of invalidToken error handling * add email success modal * automate email change for non social accounts * remove unnecessary changes * fix invalidToken error for change_email * fix typos and naming and minify the svg * fix typo * remove successEmailModal and clean the code * fix logging out the user, email_modal size on mobile and remove success icon when request fails * fix redirecting to the trade page * fix success modal content * remove email part from personalDetails page * fix email and passwords name when it is social account * show email box in personalDetails for social accounts * sync changes with automation email * change px to rem * add <br/> to the success message to the email update modal * fix typo * chnage the behaviour for apple id when click on the unlink button * fix verification_code error * fix email and passord name for all social and non social emails * remove UnlinkModal from deriv-password * update with master * update branch * fix apple icon
- Loading branch information
1 parent
08ef4d2
commit 26ae415
Showing
29 changed files
with
28,002 additions
and
77,629 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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; |
50 changes: 50 additions & 0 deletions
50
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,50 @@ | ||
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'> | ||
<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 your email address, you'll first need to unlink your email address from 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
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.