From 604ea49567f124529a3881df0c43776c33c5e7ac Mon Sep 17 00:00:00 2001 From: Justin Domingue Date: Mon, 17 May 2021 14:24:31 -0400 Subject: [PATCH] Revert "lazy load uncommon routes to reduce initial bundle size (#1597)" (#1611) This reverts commit 4c0c6dfde698ccc94ed196a229e1e6e2cf084d05. --- src/pages/App.tsx | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/src/pages/App.tsx b/src/pages/App.tsx index 9624bca244..af9e2cda67 100644 --- a/src/pages/App.tsx +++ b/src/pages/App.tsx @@ -12,26 +12,25 @@ import { ApplicationModal } from '../state/application/actions' import { useModalOpen, useToggleModal } from '../state/application/hooks' import DarkModeQueryParamReader from '../theme/DarkModeQueryParamReader' import { RedirectDuplicateTokenIds } from './AddLiquidity/redirects' +import Earn from './Earn' +import Manage from './Earn/Manage' +import MigrateV2 from './MigrateV2' +import MigrateV2Pair from './MigrateV2/MigrateV2Pair' +import Pool from './Pool' +import PoolV2 from './Pool/v2' +import PoolFinder from './PoolFinder' +import RemoveLiquidity from './RemoveLiquidity' +import RemoveLiquidityV3 from './RemoveLiquidity/V3' import Swap from './Swap' import { OpenClaimAddressModalAndRedirectToSwap, RedirectPathToSwapOnly, RedirectToSwap } from './Swap/redirects' +import Vote from './Vote' +import VotePage from './Vote/VotePage' import { RedirectDuplicateTokenIdsV2 } from './AddLiquidityV2/redirects' import { PositionPage } from './Pool/PositionPage' +import AddLiquidity from './AddLiquidity' import { ThemedBackground } from '../theme' import ApeModeQueryParamReader from 'hooks/useApeModeQueryParamReader' -const AddLiquidity = React.lazy(() => import('./AddLiquidity')) -const Earn = React.lazy(() => import('./Earn')) -const Manage = React.lazy(() => import('./Earn/Manage')) -const MigrateV2 = React.lazy(() => import('./MigrateV2')) -const MigrateV2Pair = React.lazy(() => import('./MigrateV2/MigrateV2Pair')) -const Pool = React.lazy(() => import('./Pool')) -const PoolFinder = React.lazy(() => import('./PoolFinder')) -const PoolV2 = React.lazy(() => import('./Pool/v2')) -const RemoveLiquidity = React.lazy(() => import('./RemoveLiquidity')) -const RemoveLiquidityV3 = React.lazy(() => import('./RemoveLiquidity/V3')) -const Vote = React.lazy(() => import('./Vote')) -const VotePage = React.lazy(() => import('./Vote/VotePage')) - const AppWrapper = styled.div` display: flex; flex-flow: column;