Revert "lazy load uncommon routes to reduce initial bundle size (#1597)" (#1611)

This reverts commit 4c0c6dfde698ccc94ed196a229e1e6e2cf084d05.
This commit is contained in:
Justin Domingue 2021-05-17 14:24:31 -04:00 committed by GitHub
parent 4c0c6dfde6
commit 604ea49567
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;