Skip to content

Commit

Permalink
[COJ]/likhith/[TRAH-2753]/fix: String localization render (binary-com…
Browse files Browse the repository at this point in the history
…#13293)

* fix: String localization render

* fix: title of the modal
  • Loading branch information
likhith-deriv committed Feb 5, 2024
1 parent b7ad725 commit d978a1c
Showing 1 changed file with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,19 @@ const UpdateEmailModal = observer(() => {
<Icon className='change-email-update__modal-icon' icon={`IcEmailVerified`} size={128} />
)}
<Text className='change-email-update__modal-title' weight='bold' size='s'>
<Localize i18n_default_text={!update_email_error ? 'Success!' : 'Failed'} />
{update_email_error ? (
<Localize i18n_default_text='Failed' />
) : (
<Localize i18n_default_text='Success!' />
)}
</Text>
<Text className='change-email-update__modal-description' size='xs'>
<Localize
i18n_default_text={
!update_email_error
? 'Your email address has changed.<0 />Now, log in with your new email address.'
: update_email_error
}
components={[<br key={0} />]}
/>
{update_email_error ?? (
<Localize
i18n_default_text='Your email address has changed.<0/>Now, log in with your new email address.'
components={[<br key={0} />]}
/>
)}
</Text>
<Modal.Footer className='change-email-update__footer'>
<Button onClick={onClickButton} has_effect text={localize('Log in')} primary large />
Expand Down

0 comments on commit d978a1c

Please sign in to comment.