diff --git a/apps/web/src/pages/home.tsx b/apps/web/src/pages/home.tsx new file mode 100644 index 0000000000000..9cdf21336e72d --- /dev/null +++ b/apps/web/src/pages/home.tsx @@ -0,0 +1,26 @@ +import { dehydrate, QueryClient } from '@tanstack/react-query' +import { GetStaticProps } from 'next' +import { getTotalTvl } from 'utils/getTotalTVL' +import Home from '../views/Home' + +const IndexPage = () => { + return +} + +export const getStaticProps: GetStaticProps = async () => { + const queryClient = new QueryClient() + const results = await getTotalTvl() + queryClient.setQueryData(['totalTx30Days'], results.totalTx30Days) + queryClient.setQueryData(['tvl'], results.tvl) + queryClient.setQueryData(['addressCount30Days'], results.addressCount30Days) + return { + props: { + dehydratedState: dehydrate(queryClient), + }, + } +} + +IndexPage.chains = [] +IndexPage.isShowV4IconButton = true + +export default IndexPage diff --git a/apps/web/src/pages/index.tsx b/apps/web/src/pages/index.tsx index 9cdf21336e72d..f4bd0ad480ee4 100644 --- a/apps/web/src/pages/index.tsx +++ b/apps/web/src/pages/index.tsx @@ -1,26 +1,14 @@ -import { dehydrate, QueryClient } from '@tanstack/react-query' -import { GetStaticProps } from 'next' -import { getTotalTvl } from 'utils/getTotalTVL' -import Home from '../views/Home' +import { CHAIN_IDS } from 'utils/wagmi' +import SwapLayout from 'views/Swap/SwapLayout' +import Swap from 'views/SwapSimplify' -const IndexPage = () => { - return -} +const SwapPage = () => ( + + + +) -export const getStaticProps: GetStaticProps = async () => { - const queryClient = new QueryClient() - const results = await getTotalTvl() - queryClient.setQueryData(['totalTx30Days'], results.totalTx30Days) - queryClient.setQueryData(['tvl'], results.tvl) - queryClient.setQueryData(['addressCount30Days'], results.addressCount30Days) - return { - props: { - dehydratedState: dehydrate(queryClient), - }, - } -} +SwapPage.chains = CHAIN_IDS +SwapPage.screen = true -IndexPage.chains = [] -IndexPage.isShowV4IconButton = true - -export default IndexPage +export default SwapPage