调整代码

This commit is contained in:
myf 2022-05-09 09:39:31 +08:00
parent 6b965eef3c
commit 3915cca9df
5 changed files with 33 additions and 29 deletions

BIN
build.zip Normal file

Binary file not shown.

View File

@ -1126,5 +1126,6 @@
"possess LP": "持有LP",
"capital pool": "资金池",
"Unclaimed income": "待领取收益",
"pledge": "质押"
"pledge": "质押",
"top": "置顶"
}

View File

@ -30,34 +30,34 @@ export const ZHCN: Language = { locale: 'zh-CN', language: '简体中文', code:
export const ZHTW: Language = { locale: 'zh-TW', language: '繁體中文', code: 'zh-tw' }
export const languages = {
// 'ar-SA': AR,
// 'bn-BD': BN,
'ar-SA': AR,
'bn-BD': BN,
'en-US': EN,
// 'de-DE': DE,
// 'el-GR': EL,
// 'es-ES': ESES,
// 'fi-FI': FI,
// 'fil-PH': FIL,
// 'fr-FR': FR,
// 'hi-IN': HI,
// 'hu-HU': HU,
// 'id-ID': ID,
// 'it-IT': IT,
// 'ja-JP': JA,
// 'ko-KR': KO,
// 'nl-NL': NL,
// 'pl-PL': PL,
// 'pt-BR': PTBR,
// 'pt-PT': PTPT,
// 'ro-RO': RO,
// 'ru-RU': RU,
// 'sv-SE': SVSE,
// 'ta-IN': TA,
// 'tr-TR': TR,
// 'uk-UA': UK,
// 'vi-VN': VI,
'de-DE': DE,
'el-GR': EL,
'es-ES': ESES,
'fi-FI': FI,
'fil-PH': FIL,
'fr-FR': FR,
'hi-IN': HI,
'hu-HU': HU,
'id-ID': ID,
'it-IT': IT,
'ja-JP': JA,
'ko-KR': KO,
'nl-NL': NL,
'pl-PL': PL,
'pt-BR': PTBR,
'pt-PT': PTPT,
'ro-RO': RO,
'ru-RU': RU,
'sv-SE': SVSE,
'ta-IN': TA,
'tr-TR': TR,
'uk-UA': UK,
'vi-VN': VI,
'zh-CN': ZHCN,
// 'zh-TW': ZHTW,
'zh-TW': ZHTW,
}
export const languageList = Object.values(languages)

View File

@ -1254,5 +1254,6 @@
"possess LP": "possess LP",
"capital pool": "capital pool",
"Unclaimed income": "Unclaimed income",
"pledge": "pledge"
"pledge": "pledge",
"top": "top"
}

View File

@ -1,5 +1,6 @@
import React, { useState } from 'react'
import styled from 'styled-components'
import { useTranslation } from 'contexts/Localization'
import { Text, Flex } from '@pancakeswap/uikit'
interface InfoProps {
@ -52,13 +53,14 @@ const TextTop = styled(Flex)`
`
const ListItem: React.FC<InfoProps> = ({ title, content, publishTime, top = false }) => {
const { t } = useTranslation()
return (
<>
<FlexTable>
<TableInfo>
<FlexTitle>
{title}
{top ? <TextTop></TextTop> : ''}
{top ? <TextTop>{t('top')}</TextTop> : ''}
</FlexTitle>
<TextInfo>{content}</TextInfo>
</TableInfo>