Skip to content

Commit dfff784

Browse files
hasan-derivrupato-deriv
authored andcommitted
fix: account transfer form's status text (#18088)
* 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
1 parent e50242c commit dfff784

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

packages/cashier/src/pages/account-transfer/account-transfer-form/account-transfer-form.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,21 @@ const AccountOption = ({
7474
</Text>
7575
);
7676
} else if (is_server_maintenance) {
77-
return <StatusBadge account_status='under_maintenance' icon='IcAlertWarning' text='Server Maintenance' />;
77+
return (
78+
<StatusBadge
79+
account_status='under_maintenance'
80+
icon='IcAlertWarning'
81+
text={<Localize i18n_default_text='<0>Server maintenance</0>' components={[<span key={0} />]} />}
82+
/>
83+
);
7884
} else if (is_account_unavailable) {
7985
return (
8086
<StatusBadge
8187
account_status={TRADING_PLATFORM_STATUS.UNAVAILABLE}
8288
icon='IcAlertWarning'
83-
text='Temporarily unavailable'
89+
text={
90+
<Localize i18n_default_text='<0>Temporarily unavailable</0>' components={[<span key={0} />]} />
91+
}
8492
/>
8593
);
8694
}

0 commit comments

Comments
 (0)