mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 22:30:23 +00:00
chore: dynamic imports
This commit is contained in:
parent
cd3add5c26
commit
a5a75eb81f
@ -1,12 +1,14 @@
|
|||||||
import { NextPage, NextPageContext } from 'next'
|
import { NextPage, } from 'next'
|
||||||
import Advertisement from '../components/Advertisement'
|
import dynamic from 'next/dynamic'
|
||||||
import BotCard from '../components/BotCard'
|
|
||||||
import Container from '../components/Container'
|
|
||||||
import LongButton from '../components/LongButton'
|
|
||||||
import Wave from '../components/Wave'
|
|
||||||
import { BotList } from '../types'
|
import { BotList } from '../types'
|
||||||
import { Query } from '../utils'
|
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 }) => {
|
const Index: NextPage<IndexProps> = ({ votes, newBots, trusted }) => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user