mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
chore: dynamic imports
This commit is contained in:
parent
cd3add5c26
commit
a5a75eb81f
@ -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 (
|
||||
<>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user