mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 06:20:24 +00:00
refactor: add more advertisements (#508)
This commit is contained in:
parent
bd6af3380b
commit
ca55dc8597
@ -15,6 +15,7 @@ import { getToken } from '@utils/Csrf'
|
||||
import Fetch from '@utils/Fetch'
|
||||
import { ResponseProps, SubmittedBot, Theme, User } from '@types'
|
||||
|
||||
const Advertisement = dynamic(() => import('@components/Advertisement'))
|
||||
const CheckBox = dynamic(() => import('@components/Form/CheckBox'))
|
||||
const Label = dynamic(() => import('@components/Form/Label'))
|
||||
const Login = dynamic(() => import('@components/Login'))
|
||||
@ -118,6 +119,7 @@ const AddBot:NextPage<AddBotProps> = ({ logged, user, csrfToken, theme }) => {
|
||||
</div>
|
||||
</Label>
|
||||
<Divider />
|
||||
<Advertisement />
|
||||
<Label For='id' label='봇 ID' labelDesc='봇의 클라이언트 ID를 의미합니다.' error={errors.id && touched.id ? errors.id : null} short required>
|
||||
<Input name='id' placeholder='653534001742741552' />
|
||||
</Label>
|
||||
@ -199,6 +201,7 @@ const AddBot:NextPage<AddBotProps> = ({ logged, user, csrfToken, theme }) => {
|
||||
</Form>
|
||||
)}
|
||||
</Formik>
|
||||
<Advertisement />
|
||||
</Container>
|
||||
}
|
||||
|
||||
|
||||
@ -6,6 +6,7 @@ import { get } from '@utils/Query'
|
||||
import { parseCookie} from '@utils/Tools'
|
||||
import { RawGuild, ServerData, Theme, User } from '@types'
|
||||
|
||||
const Advertisement = dynamic(() => import('@components/Advertisement'))
|
||||
const ResponsiveGrid = dynamic(() => import('@components/ResponsiveGrid'))
|
||||
const ServerCard = dynamic(() => import('@components/ServerCard'))
|
||||
const Login = dynamic(() => import('@components/Login'))
|
||||
@ -24,6 +25,7 @@ const AddBot:NextPage<AddBotProps> = ({ logged, guilds }) => {
|
||||
<h1 className='text-3xl font-bold'>새로운 서버 추가하기</h1>
|
||||
<p className='text-gray-400'>관리자이신 서버 목록입니다.</p>
|
||||
<p className='text-gray-400 pb-5'>봇을 초대한 뒤 새로고침 해주세요. 또한, 반영까지 최대 1분이 소요될 수 있습니다.</p>
|
||||
<Advertisement />
|
||||
<ResponsiveGrid>
|
||||
{
|
||||
guilds.sort((a ,b) => (+!!b.data || 0) - (+!!a.data || 0)).map(g => (
|
||||
@ -31,6 +33,7 @@ const AddBot:NextPage<AddBotProps> = ({ logged, guilds }) => {
|
||||
))
|
||||
}
|
||||
</ResponsiveGrid>
|
||||
<Advertisement />
|
||||
</Container>
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user