diff --git a/public/locales/zh-CN.json b/public/locales/zh-CN.json index 38a33d6..1df6bc0 100644 --- a/public/locales/zh-CN.json +++ b/public/locales/zh-CN.json @@ -1152,5 +1152,6 @@ "Exchange rate": "兑换比率", "gross": "总量", "remaining quantity": "剩余数量", - "Immediately change": "立即兑换" + "Immediately change": "立即兑换", + "IDO Exchange": "IDO 兑换" } diff --git a/src/components/Menu/config.ts b/src/components/Menu/config.ts index f3131e6..4c4874d 100644 --- a/src/components/Menu/config.ts +++ b/src/components/Menu/config.ts @@ -26,15 +26,15 @@ const config: (t: ContextApi['t']) => MenuEntry[] = (t) => [ // ], // }, { - label: t('Exchange'), + label: t('IDO Exchange'), icon: 'FarmIcon', href: '/exchange', }, - // { - // label: t('Exchange'), - // icon: 'FarmIcon', - // href: 'https://pancake.kiemtienonline360.com/#/swap', - // }, + { + label: t('Exchange'), + icon: 'FarmIcon', + href: 'https://pancake.kiemtienonline360.com/#/swap', + }, { label: t('Liquidity'), icon: 'FarmIcon', diff --git a/src/config/localization/translations.json b/src/config/localization/translations.json index 2650338..29721e2 100644 --- a/src/config/localization/translations.json +++ b/src/config/localization/translations.json @@ -1273,11 +1273,12 @@ "Earnings will be cleared after forced cancellation. Confirm cancellation": "Earnings will be cleared after forced cancellation. Confirm cancellation", "HighCitySwapInfo": "HIighCitySwap was born from the fanatical pursuit of blockchain technology by its founder Liu Bus, who always believes that blockchain technology can be applied more widely. For this reason, he made a brave decision to give up investment in other fields and focus on the practice and application of blockchain technology. He fused his familiar field -- Internet social interaction with blockchain technology and thus HighCitySwap was born. This is our beginning, thank you for your support, the HighCity team will always move forward.", "After pledge, income will lock warehouse%times%": "After pledge, income will lock warehouse%times%", - "IDO exchange in the first phase": "第一期IDO兑换", + "IDO exchange in the first phase": "IDO exchange in the first phase", "Opening time of next exchange period:": "Opening time of next exchange period:", "Please enter the amount": "Please enter the amount", "Exchange rate": "Exchange rate", "gross": "gross", "remaining quantity": "remaining quantity", - "Immediately change": "Immediately change" + "Immediately change": "Immediately change", + "IDO Exchange": "IDO Exchange" } diff --git a/src/views/Board/components/BoardCard/StakeAction.tsx b/src/views/Board/components/BoardCard/StakeAction.tsx index 0d231b2..26ef3da 100644 --- a/src/views/Board/components/BoardCard/StakeAction.tsx +++ b/src/views/Board/components/BoardCard/StakeAction.tsx @@ -57,7 +57,7 @@ const StakeAction: React.FC = ({ stakedBalance, tokenBalan const formatSeconds = (value: number) => { const second = value // 分 - let minute: any = 0 + let minute = 0 // 如果秒数大于60,将秒数转换成整数 if (second > 60) { // 获取分钟,除以60取整数,得到整数分钟 diff --git a/src/views/Exchange/components/ExchangeCard.tsx b/src/views/Exchange/components/ExchangeCard.tsx index 69c75dd..67a2c1a 100644 --- a/src/views/Exchange/components/ExchangeCard.tsx +++ b/src/views/Exchange/components/ExchangeCard.tsx @@ -35,8 +35,12 @@ const RateNumber = styled(Text)` font-size: 30px; color: #1fc7d4; ` -const FooterButton = styled(Button)` +const FooterButton = styled.div` margin-top: 50px; + width: 100%; +` +const UnlockButtonDiv = styled(UnlockButton)` + width: 100%; ` const ExchangeCard: React.FC = () => { @@ -60,7 +64,9 @@ const ExchangeCard: React.FC = () => { - {account ? : } + + {account ? : } + ) }