合并冲突
This commit is contained in:
commit
a6d55098d6
|
|
@ -1127,5 +1127,9 @@
|
||||||
"capital pool": "资金池",
|
"capital pool": "资金池",
|
||||||
"Unclaimed income": "待领取收益",
|
"Unclaimed income": "待领取收益",
|
||||||
"pledge": "质押",
|
"pledge": "质押",
|
||||||
|
<<<<<<< HEAD
|
||||||
"top": "置顶"
|
"top": "置顶"
|
||||||
|
=======
|
||||||
|
"Invite": "邀请"
|
||||||
|
>>>>>>> dev
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import React, { lazy, useEffect } from 'react'
|
import React, { lazy, useEffect } from 'react'
|
||||||
import { Router, Redirect, Route, Switch } from 'react-router-dom'
|
import { Router, Redirect, Route, Switch } from 'react-router-dom'
|
||||||
import { ResetCSS } from '@pancakeswap/uikit'
|
import { ResetCSS, ConfigProvider } from '@pancakeswap/uikit'
|
||||||
import { useDispatch } from 'react-redux'
|
import { useDispatch } from 'react-redux'
|
||||||
import BigNumber from 'bignumber.js'
|
import BigNumber from 'bignumber.js'
|
||||||
import useEagerConnect from 'hooks/useEagerConnect'
|
import useEagerConnect from 'hooks/useEagerConnect'
|
||||||
|
|
@ -10,6 +10,7 @@ import { initAxios } from 'utils/request'
|
||||||
import useToast from 'hooks/useToast'
|
import useToast from 'hooks/useToast'
|
||||||
import { useAccountEventListener } from 'hooks/useAccountEventListener'
|
import { useAccountEventListener } from 'hooks/useAccountEventListener'
|
||||||
import { fetchUserInfo, clearUserInfo } from 'state/actions'
|
import { fetchUserInfo, clearUserInfo } from 'state/actions'
|
||||||
|
import { useTranslation } from 'contexts/Localization'
|
||||||
import { useAccount } from 'state/userInfo/hooks'
|
import { useAccount } from 'state/userInfo/hooks'
|
||||||
import GlobalStyle from './style/Global'
|
import GlobalStyle from './style/Global'
|
||||||
import Menu from './components/Menu'
|
import Menu from './components/Menu'
|
||||||
|
|
@ -70,6 +71,7 @@ const App: React.FC = () => {
|
||||||
const dispatch = useDispatch()
|
const dispatch = useDispatch()
|
||||||
const toast = useToast()
|
const toast = useToast()
|
||||||
const account = useAccount()
|
const account = useAccount()
|
||||||
|
const { t } = useTranslation()
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
initAxios(() => {
|
initAxios(() => {
|
||||||
|
|
@ -81,6 +83,7 @@ const App: React.FC = () => {
|
||||||
}, [account])
|
}, [account])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<ConfigProvider t={t}>
|
||||||
<Router history={history}>
|
<Router history={history}>
|
||||||
<ResetCSS />
|
<ResetCSS />
|
||||||
<GlobalStyle />
|
<GlobalStyle />
|
||||||
|
|
@ -183,6 +186,7 @@ const App: React.FC = () => {
|
||||||
<ToastListener />
|
<ToastListener />
|
||||||
<DatePickerPortal />
|
<DatePickerPortal />
|
||||||
</Router>
|
</Router>
|
||||||
|
</ConfigProvider>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -123,16 +123,18 @@ const BoardCard: React.FC<NodeCardProps> = ({ board, account }) => {
|
||||||
return (
|
return (
|
||||||
<FCard>
|
<FCard>
|
||||||
<CardHeading name={t(board.name)} img={board.img} tokenSymbol={board.tokenSymbol} />
|
<CardHeading name={t(board.name)} img={board.img} tokenSymbol={board.tokenSymbol} />
|
||||||
|
{account && (
|
||||||
<CardDiv>
|
|
||||||
<div>
|
<div>
|
||||||
<FlexText name={t('HCC Currency amount')} value={board.userData?.amount} />
|
<FlexText name={t('HCC Currency amount')} value={board.userData?.amount} />
|
||||||
{board.userData?.name === 'Board' ? <FlexText name={t('Lock up time')} value={countDown} /> : ''}
|
{board.userData?.name === 'Board' ? (
|
||||||
|
<FlexText name={t('Lock up time')} value={board.userData?.unlockTime} />
|
||||||
|
) : (
|
||||||
|
''
|
||||||
|
)}
|
||||||
<FlexText name={t('possess LP')} value={board.userData?.rewardDebt} />
|
<FlexText name={t('possess LP')} value={board.userData?.rewardDebt} />
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
<CardActionsContainer board={board} account={account} />
|
<CardActionsContainer board={board} account={account} />
|
||||||
</CardDiv>
|
|
||||||
|
|
||||||
{/* <Divider />
|
{/* <Divider />
|
||||||
<ExpandableSectionButton
|
<ExpandableSectionButton
|
||||||
onClick={() => setShowExpandableSection(!showExpandableSection)}
|
onClick={() => setShowExpandableSection(!showExpandableSection)}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue