mirror of
https://github.com/koreanbots/core.git
synced 2025-12-18 15:10:24 +00:00
chore: changed debug code
This commit is contained in:
parent
7a900f6a12
commit
ad8d41cc0e
@ -2,7 +2,7 @@ import { NextPage, NextPageContext } from 'next'
|
|||||||
import { useRouter } from 'next/router'
|
import { useRouter } from 'next/router'
|
||||||
import dynamic from 'next/dynamic'
|
import dynamic from 'next/dynamic'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
import { FieldArray, Form, Formik } from 'formik'
|
import { Form, Formik } from 'formik'
|
||||||
|
|
||||||
import { get } from '@utils/Query'
|
import { get } from '@utils/Query'
|
||||||
import { parseCookie, redirectTo } from '@utils/Tools'
|
import { parseCookie, redirectTo } from '@utils/Tools'
|
||||||
@ -46,11 +46,9 @@ const AddBot:NextPage<AddBotProps> = ({ logged }) => {
|
|||||||
desc: ''
|
desc: ''
|
||||||
}}
|
}}
|
||||||
validationSchema={AddBotSubmitSchema}
|
validationSchema={AddBotSubmitSchema}
|
||||||
onSubmit={() => { alert('Submit') }}>
|
onSubmit={(values) => { alert(values) }}>
|
||||||
{({ errors, touched, values, setFieldTouched, setFieldValue }) => (
|
{({ errors, touched, values, setFieldTouched, setFieldValue }) => (
|
||||||
<Form>
|
<Form>
|
||||||
{JSON.stringify(errors)}
|
|
||||||
{JSON.stringify(touched)}
|
|
||||||
<Message type='warning'>
|
<Message type='warning'>
|
||||||
<h2 className='text-lg font-black'>신청하시기전에 다음 사항을 확인해주세요!</h2>
|
<h2 className='text-lg font-black'>신청하시기전에 다음 사항을 확인해주세요!</h2>
|
||||||
<ul className='list-disc list-inside'>
|
<ul className='list-disc list-inside'>
|
||||||
@ -128,7 +126,11 @@ const AddBot:NextPage<AddBotProps> = ({ logged }) => {
|
|||||||
</Label>
|
</Label>
|
||||||
</div>
|
</div>
|
||||||
</div> */}
|
</div> */}
|
||||||
<button type='submit'>제출</button>
|
<Button type='submit' onClick={() => window.scrollTo({ top: 0 })}>
|
||||||
|
<>
|
||||||
|
<i className='far fa-paper-plane'/> 제출
|
||||||
|
</>
|
||||||
|
</Button>
|
||||||
</Form>
|
</Form>
|
||||||
)}
|
)}
|
||||||
</Formik>
|
</Formik>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user