From 7beac7e50fc065b3caf8f2a6053c1d9854ffe281 Mon Sep 17 00:00:00 2001 From: Farabi Date: Mon, 23 Sep 2024 16:11:18 +0800 Subject: [PATCH] fix: used localize method from deriv-com/translations --- .../journal/journal-components/format-message.tsx | 2 +- src/components/layout/footer/Endpoint.tsx | 2 +- src/components/layout/header/index.tsx | 6 +++--- src/components/load-modal/local-footer.tsx | 2 +- src/components/load-modal/recent-footer.tsx | 2 +- src/components/route-prompt-dialog/route-prompt-dialog.tsx | 3 ++- src/components/shared/utils/helpers/chart-notifications.tsx | 3 ++- .../shared/utils/helpers/portfolio-notifications.tsx | 3 ++- src/pages/dashboard/load-bot-preview/local-footer.tsx | 2 +- src/pages/dashboard/load-bot-preview/local.tsx | 2 +- src/pages/dashboard/stop-bot-modal-content.tsx | 6 +++--- src/pages/main/main.tsx | 3 ++- src/pages/tutorials/dbot-tours/common/tour-end-dialog.tsx | 2 +- .../help-strings/trade_definition_multiplier.tsx | 3 ++- 14 files changed, 23 insertions(+), 18 deletions(-) diff --git a/src/components/journal/journal-components/format-message.tsx b/src/components/journal/journal-components/format-message.tsx index 46315b22..bbd47ac3 100644 --- a/src/components/journal/journal-components/format-message.tsx +++ b/src/components/journal/journal-components/format-message.tsx @@ -2,7 +2,7 @@ import classnames from 'classnames'; import { formatMoney, getCurrencyDisplayCode } from '@/components/shared'; import Text from '@/components/shared_ui/text'; import { LogTypes } from '@/external/bot-skeleton'; -import { Localize, localize } from '@/utils/tmp/dummy'; +import { Localize, localize } from '@deriv-com/translations'; import { TFormatMessageProps } from '../journal.types'; const FormatMessage = ({ logType, className, extra }: TFormatMessageProps) => { diff --git a/src/components/layout/footer/Endpoint.tsx b/src/components/layout/footer/Endpoint.tsx index 380a16dc..24bdb312 100644 --- a/src/components/layout/footer/Endpoint.tsx +++ b/src/components/layout/footer/Endpoint.tsx @@ -8,7 +8,7 @@ const Endpoint = () => { if (serverURL) { return ( - + The server{' '} endpoint diff --git a/src/components/layout/header/index.tsx b/src/components/layout/header/index.tsx index cf40a379..ce7c1486 100644 --- a/src/components/layout/header/index.tsx +++ b/src/components/layout/header/index.tsx @@ -48,10 +48,10 @@ const AppHeader = () => { onClick={() => { window.location.assign('https://app.deriv.com/cashier/deposit'); }} - size='md' + size='s' className='deposit-button' > - + {localize('Deposit')} @@ -60,7 +60,7 @@ const AppHeader = () => { } else { return (