调整部分代码

This commit is contained in:
myf 2022-05-16 18:10:21 +08:00
parent dc2af6e2b5
commit a74ef1eff1
5 changed files with 20 additions and 12 deletions

View File

@ -1152,5 +1152,6 @@
"Exchange rate": "兑换比率",
"gross": "总量",
"remaining quantity": "剩余数量",
"Immediately change": "立即兑换"
"Immediately change": "立即兑换",
"IDO Exchange": "IDO 兑换"
}

View File

@ -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',

View File

@ -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"
}

View File

@ -57,7 +57,7 @@ const StakeAction: React.FC<NodeCardActionsProps> = ({ stakedBalance, tokenBalan
const formatSeconds = (value: number) => {
const second = value
// 分
let minute: any = 0
let minute = 0
// 如果秒数大于60将秒数转换成整数
if (second > 60) {
// 获取分钟除以60取整数得到整数分钟

View File

@ -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 = () => {
</Text>
</Flex>
<ExchangeInput name="HCC" />
<FooterButton>{account ? <Button>{t('Immediately change')}</Button> : <UnlockButton />}</FooterButton>
<FooterButton>
{account ? <Button width="100%">{t('Immediately change')}</Button> : <UnlockButtonDiv />}
</FooterButton>
</FCard>
)
}