Skip to content

Commit

Permalink
Hide cross chain section
Browse files Browse the repository at this point in the history
  • Loading branch information
tienkane committed Sep 24, 2024
1 parent 44b6420 commit c18db93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/Header/groups/SwapNavGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const SwapNavGroup = () => {
</StyledNavLink>
)}

{CHAINS_SUPPORT_CROSS_CHAIN.includes(chainId) && (
{/* {CHAINS_SUPPORT_CROSS_CHAIN.includes(chainId) && (
<StyledNavLink
id="cross-chain-nav-link"
to={APP_PATHS.CROSS_CHAIN}
Expand All @@ -118,7 +118,7 @@ const SwapNavGroup = () => {
</Flex>
</Flex>
</StyledNavLink>
)}
)} */}

{/*
!(chainId === ChainId.LINEA_TESTNET) && (
Expand Down
4 changes: 2 additions & 2 deletions src/pages/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,9 @@ export default function App() {
{/* From react-router-dom@6.5.0, :fromCurrency-to-:toCurrency no long works, need to manually parse the params */}
<Route path={`${APP_PATHS.SWAP}/:network/:currency?`} element={<SwapPage />} />
<Route path={`${APP_PATHS.PARTNER_SWAP}`} element={<PartnerSwap />} />
{CHAINS_SUPPORT_CROSS_CHAIN.includes(chainId) && (
{/* {CHAINS_SUPPORT_CROSS_CHAIN.includes(chainId) && (
<Route path={`${APP_PATHS.CROSS_CHAIN}`} element={<SwapV3 />} />
)}
)} */}

{isSupportLimitOrder(chainId) && (
<Route path={`${APP_PATHS.LIMIT}/:network/:currency?`} element={<SwapPage />} />
Expand Down

0 comments on commit c18db93

Please sign in to comment.