refactor: add more advertisements (#508)

This commit is contained in:
Byungchul Kim 2022-08-12 09:59:44 +09:00 committed by GitHub
parent bd6af3380b
commit ca55dc8597
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,7 @@ import { getToken } from '@utils/Csrf'
import Fetch from '@utils/Fetch' import Fetch from '@utils/Fetch'
import { ResponseProps, SubmittedBot, Theme, User } from '@types' import { ResponseProps, SubmittedBot, Theme, User } from '@types'
const Advertisement = dynamic(() => import('@components/Advertisement'))
const CheckBox = dynamic(() => import('@components/Form/CheckBox')) const CheckBox = dynamic(() => import('@components/Form/CheckBox'))
const Label = dynamic(() => import('@components/Form/Label')) const Label = dynamic(() => import('@components/Form/Label'))
const Login = dynamic(() => import('@components/Login')) const Login = dynamic(() => import('@components/Login'))
@ -118,6 +119,7 @@ const AddBot:NextPage<AddBotProps> = ({ logged, user, csrfToken, theme }) => {
</div> </div>
</Label> </Label>
<Divider /> <Divider />
<Advertisement />
<Label For='id' label='봇 ID' labelDesc='봇의 클라이언트 ID를 의미합니다.' error={errors.id && touched.id ? errors.id : null} short required> <Label For='id' label='봇 ID' labelDesc='봇의 클라이언트 ID를 의미합니다.' error={errors.id && touched.id ? errors.id : null} short required>
<Input name='id' placeholder='653534001742741552' /> <Input name='id' placeholder='653534001742741552' />
</Label> </Label>
@ -199,6 +201,7 @@ const AddBot:NextPage<AddBotProps> = ({ logged, user, csrfToken, theme }) => {
</Form> </Form>
)} )}
</Formik> </Formik>
<Advertisement />
</Container> </Container>
} }

View File

@ -6,6 +6,7 @@ import { get } from '@utils/Query'
import { parseCookie} from '@utils/Tools' import { parseCookie} from '@utils/Tools'
import { RawGuild, ServerData, Theme, User } from '@types' import { RawGuild, ServerData, Theme, User } from '@types'
const Advertisement = dynamic(() => import('@components/Advertisement'))
const ResponsiveGrid = dynamic(() => import('@components/ResponsiveGrid')) const ResponsiveGrid = dynamic(() => import('@components/ResponsiveGrid'))
const ServerCard = dynamic(() => import('@components/ServerCard')) const ServerCard = dynamic(() => import('@components/ServerCard'))
const Login = dynamic(() => import('@components/Login')) const Login = dynamic(() => import('@components/Login'))
@ -24,6 +25,7 @@ const AddBot:NextPage<AddBotProps> = ({ logged, guilds }) => {
<h1 className='text-3xl font-bold'> </h1> <h1 className='text-3xl font-bold'> </h1>
<p className='text-gray-400'> .</p> <p className='text-gray-400'> .</p>
<p className='text-gray-400 pb-5'> . , 1 .</p> <p className='text-gray-400 pb-5'> . , 1 .</p>
<Advertisement />
<ResponsiveGrid> <ResponsiveGrid>
{ {
guilds.sort((a ,b) => (+!!b.data || 0) - (+!!a.data || 0)).map(g => ( guilds.sort((a ,b) => (+!!b.data || 0) - (+!!a.data || 0)).map(g => (
@ -31,6 +33,7 @@ const AddBot:NextPage<AddBotProps> = ({ logged, guilds }) => {
)) ))
} }
</ResponsiveGrid> </ResponsiveGrid>
<Advertisement />
</Container> </Container>
} }