Skip to content

Commit

Permalink
chore: remove classic pools list route
Browse files Browse the repository at this point in the history
  • Loading branch information
viet-nv committed Mar 26, 2024
1 parent 236bf46 commit 6d79329
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/pages/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,12 @@ const ElasticSwap = lazy(() => import('./ElasticSwap'))
const SwapV3 = lazy(() => import('./SwapV3'))
const PartnerSwap = lazy(() => import('./PartnerSwap'))
// const Bridge = lazy(() => import('./Bridge'))
const Pools = lazy(() => import('./Pools'))
const MyPool = lazy(() => import('./MyPool'))

const Farm = lazy(() => import('./Farm'))

const PoolFinder = lazy(() => import('./PoolFinder'))
const ElasticRemoveLiquidity = lazy(() => import('pages/RemoveLiquidityProAmm'))
const RedirectCreatePool = lazy(() => import('pages/CreatePool/RedirectCreatePool'))

const RemoveLiquidity = lazy(() => import('pages/RemoveLiquidity'))

Expand Down Expand Up @@ -154,16 +152,6 @@ const RoutesWithNetworkPrefix = () => {
<Routes>
{!CLASSIC_NOT_SUPPORTED()[chainId] && (
<>
<Route
path={`${APP_PATHS.CLASSIC_CREATE_POOL}/:currencyIdA?/:currencyIdB?`}
element={<RedirectCreatePool />}
/>
{/*
<Route
path={`${APP_PATHS.CLASSIC_ADD_LIQ}/:currencyIdA/:currencyIdB?/:pairAddress?`}
element={<AddLiquidity />}
/>
*/}
<Route
path={`${APP_PATHS.CLASSIC_REMOVE_POOL}/:currencyIdA/:currencyIdB/:pairAddress`}
element={<RemoveLiquidity />}
Expand Down Expand Up @@ -271,12 +259,6 @@ export default function App() {
)}

<Route path={`${APP_PATHS.FIND_POOL}`} element={<PoolFinder />} />
<>
{/* Pools Routes */}
<Route path={`${APP_PATHS.POOLS}`} element={<RedirectWithNetworkSuffix />} />
<Route path={`${APP_PATHS.POOLS}/:network/:currencyIdA?/:currencyIdB?`} element={<Pools />} />
</>

<>
{/* Farms Routes */}
<Route path={`${APP_PATHS.FARMS}`} element={<RedirectWithNetworkSuffix />} />
Expand All @@ -298,8 +280,6 @@ export default function App() {

<Route path={`${APP_PATHS.ELASTIC_REMOVE_POOL}/*`} element={<RedirectWithNetworkPrefix />} />

<Route path={`${APP_PATHS.CLASSIC_CREATE_POOL}/*`} element={<RedirectWithNetworkPrefix />} />
<Route path={`${APP_PATHS.CLASSIC_ADD_LIQ}/*`} element={<RedirectWithNetworkPrefix />} />
<Route path={`${APP_PATHS.CLASSIC_REMOVE_POOL}/*`} element={<RedirectWithNetworkPrefix />} />
</>

Expand Down

0 comments on commit 6d79329

Please sign in to comment.