Skip to content

Commit

Permalink
change social unlink button style
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdiyeh-deriv committed Feb 13, 2022
1 parent eec21fc commit 3ee40dd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
26 changes: 13 additions & 13 deletions packages/account/src/Sections/Security/Passwords/deriv-password.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ const DerivPassword = ({ email, is_dark_mode_on, is_social_signup, social_identi
<div className='account__passwords-wrapper'>
<React.Fragment>
<Text as='p' className='passwords-platform__desc' color='prominent' size='xs' weight='lighter'>
<Localize i18n_default_text='Your Deriv password is for logging in to your Deriv account.' />
<Localize
i18n_default_text='Use the <0>Deriv password</0> to log in yo Deriv.com, Deriv Go, Dtrader, SmartTrader, and DBot.'
components={[<strong key={0} />]}
/>
</Text>
<Text as='p' className='passwords-platform__desc' color='prominent' size='xs' weight='lighter'>
<Localize i18n_default_text='Apps you can use with your Deriv login:' />
Expand Down Expand Up @@ -72,31 +75,28 @@ const DerivPassword = ({ email, is_dark_mode_on, is_social_signup, social_identi
/>
</Text>
</div>
<div className='account__passwords-linked'>
<div
className='account__passwords-linked'
onClick={() => {
setIsUnlinkModalOpen(true);
setIsSentEmailModalOpen(true);
}}
>
{social_identity_provider ? (
<React.Fragment>
<Icon icon={`IcStock${capitalized_identifier}`} size={16} />
<Text size='xs'>
<Localize
i18n_default_text='Linked with {{identifier_title}}'
i18n_default_text='Unlink from {{identifier_title}}'
values={{ identifier_title: capitalized_identifier }}
/>
</Text>
<Icon icon='IcChevronRight' size={16} />
</React.Fragment>
) : (
''
)}
</div>
<Button
onClick={() => {
setIsUnlinkModalOpen(true);
setIsSentEmailModalOpen(true);
}}
type='button'
text={localize('Unlink')}
tertiary
large
/>
</div>
</React.Fragment>
) : (
Expand Down
4 changes: 4 additions & 0 deletions packages/account/src/Styles/account.scss
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,10 @@ $MIN_HEIGHT_FLOATING: calc(
border-radius: $BORDER_RADIUS;
width: fit-content;
height: 4rem;
cursor: pointer;
&:hover {
background-color: var(--general-active);
}
}

@include mobile {
Expand Down

0 comments on commit 3ee40dd

Please sign in to comment.