Skip to content

Commit

Permalink
fix: account transfer form's status text (#18088)
Browse files Browse the repository at this point in the history
* fix: account transfer form's status text

* fix: added fragment to new texts

* fix: added span tag

* fix: removed unused fragment

* fix: fixed server text
  • Loading branch information
hasan-deriv authored Mar 3, 2025
1 parent e50242c commit ae61847
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,21 @@ const AccountOption = ({
</Text>
);
} else if (is_server_maintenance) {
return <StatusBadge account_status='under_maintenance' icon='IcAlertWarning' text='Server Maintenance' />;
return (
<StatusBadge
account_status='under_maintenance'
icon='IcAlertWarning'
text={<Localize i18n_default_text='<0>Server maintenance</0>' components={[<span key={0} />]} />}
/>
);
} else if (is_account_unavailable) {
return (
<StatusBadge
account_status={TRADING_PLATFORM_STATUS.UNAVAILABLE}
icon='IcAlertWarning'
text='Temporarily unavailable'
text={
<Localize i18n_default_text='<0>Temporarily unavailable</0>' components={[<span key={0} />]} />
}
/>
);
}
Expand Down

0 comments on commit ae61847

Please sign in to comment.