chore: dynamic imports

This commit is contained in:
원더 2021-01-11 22:53:49 +09:00
parent cd3add5c26
commit a5a75eb81f

View File

@ -1,12 +1,14 @@
import { NextPage, NextPageContext } from 'next'
import Advertisement from '../components/Advertisement'
import BotCard from '../components/BotCard'
import Container from '../components/Container'
import LongButton from '../components/LongButton'
import Wave from '../components/Wave'
import { NextPage, } from 'next'
import dynamic from 'next/dynamic'
import { BotList } from '../types'
import { Query } from '../utils'
const Advertisement = dynamic(()=> import('../components/Advertisement'))
const Container = dynamic(()=> import('../components/Container'))
const BotCard = dynamic(()=> import('../components/BotCard'))
const Wave = dynamic(()=> import('../components/Wave'))
const Index: NextPage<IndexProps> = ({ votes, newBots, trusted }) => {
return (
<>