diff --git a/public/locales/zh-CN.json b/public/locales/zh-CN.json index cf5c4f1..ce4b2ca 100644 --- a/public/locales/zh-CN.json +++ b/public/locales/zh-CN.json @@ -1127,5 +1127,9 @@ "capital pool": "资金池", "Unclaimed income": "待领取收益", "pledge": "质押", +<<<<<<< HEAD "top": "置顶" +======= + "Invite": "邀请" +>>>>>>> dev } diff --git a/src/App.tsx b/src/App.tsx index 43bf629..95fbbef 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,6 +1,6 @@ import React, { lazy, useEffect } from 'react' 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 BigNumber from 'bignumber.js' import useEagerConnect from 'hooks/useEagerConnect' @@ -10,6 +10,7 @@ import { initAxios } from 'utils/request' import useToast from 'hooks/useToast' import { useAccountEventListener } from 'hooks/useAccountEventListener' import { fetchUserInfo, clearUserInfo } from 'state/actions' +import { useTranslation } from 'contexts/Localization' import { useAccount } from 'state/userInfo/hooks' import GlobalStyle from './style/Global' import Menu from './components/Menu' @@ -70,6 +71,7 @@ const App: React.FC = () => { const dispatch = useDispatch() const toast = useToast() const account = useAccount() + const { t } = useTranslation() useEffect(() => { initAxios(() => { @@ -81,37 +83,38 @@ const App: React.FC = () => { }, [account]) return ( - - - - - }> - - - - - - - - - - - - - - - - - - - - - - - - - - {/* + + + + + + }> + + + + + + + + + + + + + + + + + + + + + + + + + + {/* @@ -146,7 +149,7 @@ const App: React.FC = () => { {/* Using this format because these components use routes injected props. We need to rework them with hooks */} - {/* + {/* @@ -163,8 +166,8 @@ const App: React.FC = () => { */} - {/* Redirect */} - {/* + {/* Redirect */} + {/* @@ -174,15 +177,16 @@ const App: React.FC = () => { */} - {/* 404 */} - - - - - - - - + {/* 404 */} + + + + + + + + + ) } diff --git a/src/views/Board/components/BoardCard/BoardCard.tsx b/src/views/Board/components/BoardCard/BoardCard.tsx index 0c31be0..452ca0c 100644 --- a/src/views/Board/components/BoardCard/BoardCard.tsx +++ b/src/views/Board/components/BoardCard/BoardCard.tsx @@ -123,16 +123,18 @@ const BoardCard: React.FC = ({ board, account }) => { return ( - - + {account && ( - {board.userData?.name === 'Board' ? : ''} + {board.userData?.name === 'Board' ? ( + + ) : ( + '' + )} - - - + )} + {/* setShowExpandableSection(!showExpandableSection)}