feat: 修改菜单

This commit is contained in:
gary 2022-04-28 16:08:19 +08:00
parent cd064ce668
commit 76b8d6fb2b
2 changed files with 20 additions and 20 deletions

View File

@ -144,7 +144,7 @@ const App: React.FC = () => {
</Route> </Route>
{/* Using this format because these components use routes injected props. We need to rework them with hooks */} {/* Using this format because these components use routes injected props. We need to rework them with hooks */}
<Route exact strict path="/swap" component={Swap} /> {/* <Route exact strict path="/swap" component={Swap} />
<Route exact strict path="/swap/:outputCurrency" component={RedirectToSwap} /> <Route exact strict path="/swap/:outputCurrency" component={RedirectToSwap} />
<Route exact strict path="/send" component={RedirectPathToSwapOnly} /> <Route exact strict path="/send" component={RedirectPathToSwapOnly} />
<Route exact strict path="/find" component={PoolFinder} /> <Route exact strict path="/find" component={PoolFinder} />
@ -159,7 +159,7 @@ const App: React.FC = () => {
<Route exact strict path="/remove/:tokens" component={RedirectOldRemoveLiquidityPathStructure} /> <Route exact strict path="/remove/:tokens" component={RedirectOldRemoveLiquidityPathStructure} />
<Route exact strict path="/remove/:currencyIdA/:currencyIdB" component={RemoveLiquidity} /> <Route exact strict path="/remove/:currencyIdA/:currencyIdB" component={RemoveLiquidity} />
<Route exact strict path="/nft" component={Nft} /> <Route exact strict path="/nft" component={Nft} />
<Route exact strict path="/announcement" component={Announcement} /> <Route exact strict path="/announcement" component={Announcement} /> */}
{/* Redirect */} {/* Redirect */}
{/* <Route path="/staking"> {/* <Route path="/staking">

View File

@ -7,24 +7,24 @@ const config: (t: ContextApi['t']) => MenuEntry[] = (t) => [
icon: 'HomeIcon', icon: 'HomeIcon',
href: '/', href: '/',
}, },
{ // {
label: t('Trade'), // label: t('Trade'),
icon: 'TradeIcon', // icon: 'TradeIcon',
items: [ // items: [
{ // {
label: t('Exchange'), // label: t('Exchange'),
href: '/swap', // href: '/swap',
}, // },
{ // {
label: t('Liquidity'), // label: t('Liquidity'),
href: '/pool', // href: '/pool',
}, // },
// { // // {
// label: t('LP Migration'), // // label: t('LP Migration'),
// href: 'https://v1exchange.pancakeswap.finance/#/migrate', // // href: 'https://v1exchange.pancakeswap.finance/#/migrate',
// }, // // },
], // ],
}, // },
{ {
label: t('Farms'), label: t('Farms'),
icon: 'FarmIcon', icon: 'FarmIcon',