diff --git a/lang/default.json b/lang/default.json index 625947b28e..f591535de9 100644 --- a/lang/default.json +++ b/lang/default.json @@ -184,6 +184,9 @@ "defaultMessage": "Total", "description": "src/views/Circle/Analytics/SubscriberAnalytics/index.tsx" }, + "2D/X90": { + "defaultMessage": "Why Optimism?" + }, "2DkkhD": { "defaultMessage": "Settings - Notifications", "description": "src/views/Me/Settings/Notifications/index.tsx" @@ -245,6 +248,9 @@ "3yk8fB": { "defaultMessage": "Wallet" }, + "4118K3": { + "defaultMessage": "Optimism is a Layer 2 scaling solution based on Ethereum that can provide faster and cheaper transactions, while ensuring security, making it easier for you to support creators." + }, "47FYwb": { "defaultMessage": "Cancel" }, @@ -1046,6 +1052,10 @@ "OpeFTV": { "defaultMessage": "Enter a 6-digit payment password." }, + "P+sWM0": { + "defaultMessage": "guide", + "description": "src/components/Forms/PaymentForm/PayTo/SetAmount/SetAmountHeader/WhyOptimismDialog/index.tsx" + }, "PLBmDT": { "defaultMessage": "Password", "description": "src/views/Me/Settings/Settings/Password/index.tsx" @@ -1570,6 +1580,9 @@ "defaultMessage": "Resend", "description": "src/components/Forms/EmailLoginForm/index.tsx" }, + "eKVBm/": { + "defaultMessage": "Optimism is a standalone blockchain. If you have USDT on other chains, you need to transfer them to Optimism. See details in the {link}." + }, "eTpiYa": { "defaultMessage": "No data yet." }, diff --git a/lang/en.json b/lang/en.json index 32ab5339e7..cf4764bfae 100644 --- a/lang/en.json +++ b/lang/en.json @@ -184,6 +184,9 @@ "defaultMessage": "Total", "description": "src/views/Circle/Analytics/SubscriberAnalytics/index.tsx" }, + "2D/X90": { + "defaultMessage": "Why Optimism?" + }, "2DkkhD": { "defaultMessage": "Settings - Notifications", "description": "src/views/Me/Settings/Notifications/index.tsx" @@ -245,6 +248,9 @@ "3yk8fB": { "defaultMessage": "Wallet" }, + "4118K3": { + "defaultMessage": "Optimism is a Layer 2 scaling solution based on Ethereum that can provide faster and cheaper transactions, while ensuring security, making it easier for you to support creators." + }, "47FYwb": { "defaultMessage": "Cancel" }, @@ -1046,6 +1052,10 @@ "OpeFTV": { "defaultMessage": "Enter a 6-digit payment password." }, + "P+sWM0": { + "defaultMessage": "guide", + "description": "src/components/Forms/PaymentForm/PayTo/SetAmount/SetAmountHeader/WhyOptimismDialog/index.tsx" + }, "PLBmDT": { "defaultMessage": "Password", "description": "src/views/Me/Settings/Settings/Password/index.tsx" @@ -1570,6 +1580,9 @@ "defaultMessage": "Resend", "description": "src/components/Forms/EmailLoginForm/index.tsx" }, + "eKVBm/": { + "defaultMessage": "Optimism is a standalone blockchain. If you have USDT on other chains, you need to transfer them to Optimism. See details in the {link}." + }, "eTpiYa": { "defaultMessage": "No data yet." }, diff --git a/lang/zh-Hans.json b/lang/zh-Hans.json index faddd50b83..99b9ec5326 100644 --- a/lang/zh-Hans.json +++ b/lang/zh-Hans.json @@ -184,6 +184,9 @@ "defaultMessage": "总数", "description": "src/views/Circle/Analytics/SubscriberAnalytics/index.tsx" }, + "2D/X90": { + "defaultMessage": "为什么采用 Optimism?" + }, "2DkkhD": { "defaultMessage": "设置 - 通知", "description": "src/views/Me/Settings/Notifications/index.tsx" @@ -245,6 +248,9 @@ "3yk8fB": { "defaultMessage": "我的钱包" }, + "4118K3": { + "defaultMessage": "Optimism 是基于以太坊的第二层(Layer2)扩容方案,能提升交易速度,并降低手续费,同时确保安全性,让你更轻松地支持创作者。" + }, "47FYwb": { "defaultMessage": "取消" }, @@ -1046,6 +1052,10 @@ "OpeFTV": { "defaultMessage": "输入六位数字交易密码" }, + "P+sWM0": { + "defaultMessage": "教学指南", + "description": "src/components/Forms/PaymentForm/PayTo/SetAmount/SetAmountHeader/WhyOptimismDialog/index.tsx" + }, "PLBmDT": { "defaultMessage": "登录密码", "description": "src/views/Me/Settings/Settings/Password/index.tsx" @@ -1570,6 +1580,9 @@ "defaultMessage": "重新发送", "description": "src/components/Forms/EmailLoginForm/index.tsx" }, + "eKVBm/": { + "defaultMessage": "Optimism 是独立运行的区块链,若你在其他链上已有 USDT 货币,需要将它们转移到 Optimism 网络才能使用,详情参考{link}。" + }, "eTpiYa": { "defaultMessage": "尚无支持数据" }, diff --git a/lang/zh-Hant.json b/lang/zh-Hant.json index 35f39ef308..2c1932b72a 100644 --- a/lang/zh-Hant.json +++ b/lang/zh-Hant.json @@ -184,6 +184,9 @@ "defaultMessage": "總數", "description": "src/views/Circle/Analytics/SubscriberAnalytics/index.tsx" }, + "2D/X90": { + "defaultMessage": "為什麼採用 Optimism?" + }, "2DkkhD": { "defaultMessage": "設定 - 通知", "description": "src/views/Me/Settings/Notifications/index.tsx" @@ -245,6 +248,9 @@ "3yk8fB": { "defaultMessage": "我的錢包" }, + "4118K3": { + "defaultMessage": "Optimism 是基於以太坊的第二層(Layer2)擴容方案,能提升交易速度,並降低手續費,同時確保安全性,讓你更輕鬆地支持創作者。" + }, "47FYwb": { "defaultMessage": "取消" }, @@ -1046,6 +1052,10 @@ "OpeFTV": { "defaultMessage": "輸入六位數字交易密碼" }, + "P+sWM0": { + "defaultMessage": "教學指南", + "description": "src/components/Forms/PaymentForm/PayTo/SetAmount/SetAmountHeader/WhyOptimismDialog/index.tsx" + }, "PLBmDT": { "defaultMessage": "登入密碼", "description": "src/views/Me/Settings/Settings/Password/index.tsx" @@ -1570,6 +1580,9 @@ "defaultMessage": "重新發送", "description": "src/components/Forms/EmailLoginForm/index.tsx" }, + "eKVBm/": { + "defaultMessage": "Optimism 是獨立運行的區塊鏈,若你在其他鏈上已有 USDT 貨幣,需要將它們轉移到 Optimism 網絡才能使用,詳情參考{link}。" + }, "eTpiYa": { "defaultMessage": "尚無支持數據" }, diff --git a/src/components/Forms/PaymentForm/PayTo/SetAmount/SetAmountHeader/WhyOptimismDialog/index.tsx b/src/components/Forms/PaymentForm/PayTo/SetAmount/SetAmountHeader/WhyOptimismDialog/index.tsx index b91d58c39d..e2f0e76fd1 100644 --- a/src/components/Forms/PaymentForm/PayTo/SetAmount/SetAmountHeader/WhyOptimismDialog/index.tsx +++ b/src/components/Forms/PaymentForm/PayTo/SetAmount/SetAmountHeader/WhyOptimismDialog/index.tsx @@ -2,12 +2,7 @@ import { useContext } from 'react' import { FormattedMessage } from 'react-intl' import { GUIDE_LINKS } from '~/common/enums' -import { - Dialog, - LanguageContext, - Translate, - useDialogSwitch, -} from '~/components' +import { Dialog, LanguageContext, useDialogSwitch } from '~/components' interface WhyOptimismDialogProps { children: ({ openDialog }: { openDialog: () => void }) => React.ReactNode @@ -32,11 +27,7 @@ const WhyOptimismDialog = ({ children }: WhyOptimismDialogProps) => { + } closeDialog={closeDialog} closeText={ @@ -48,37 +39,31 @@ const WhyOptimismDialog = ({ children }: WhyOptimismDialogProps) => {
  1. - -
  2. -
  3. - - - - -
  4. - + + + ), + }} />