diff --git a/pages/developers/applications/bots/[id].tsx b/pages/developers/applications/bots/[id].tsx index 818820a..7da53fd 100644 --- a/pages/developers/applications/bots/[id].tsx +++ b/pages/developers/applications/bots/[id].tsx @@ -2,12 +2,10 @@ import { NextPage, NextPageContext } from 'next' import dynamic from 'next/dynamic' import { useRouter } from 'next/router' import { useState } from 'react' -import { Form, Formik } from 'formik' import useCopyClipboard from 'react-use-clipboard' import { get } from '@utils/Query' -import { DeveloperBot, DeveloperBotSchema } from '@utils/Yup' -import { cleanObject, parseCookie, redirectTo } from '@utils/Tools' +import { parseCookie, redirectTo } from '@utils/Tools' import { getToken } from '@utils/Csrf' import Fetch from '@utils/Fetch' @@ -18,7 +16,6 @@ import NotFound from 'pages/404' import Link from 'next/link' const Button = dynamic(() => import('@components/Button')) -const Input = dynamic(() => import('@components/Form/Input')) const DeveloperLayout = dynamic(() => import('@components/DeveloperLayout')) const DiscordAvatar = dynamic(() => import('@components/DiscordAvatar')) const Message = dynamic(() => import('@components/Message')) @@ -32,13 +29,13 @@ const BotApplication: NextPage = ({ user, spec, bot, theme, const [ tokenCopied, setTokenCopied ] = useCopyClipboard(spec?.token, { successDuration: 1000 }) - async function updateApplication(d: DeveloperBot) { - const res = await Fetch(`/applications/bots/${bot.id}`, { - method: 'PATCH', - body: JSON.stringify(cleanObject(d)) - }) - setData(res) - } + // async function updateApplication(d: DeveloperBot) { + // const res = await Fetch(`/applications/bots/${bot.id}`, { + // method: 'PATCH', + // body: JSON.stringify(cleanObject(d)) + // }) + // setData(res) + // } async function resetToken() { const res = await Fetch<{ token: string }>(`/applications/bots/${bot.id}/reset`, { @@ -91,9 +88,19 @@ const BotApplication: NextPage = ({ user, spec, bot, theme, - + setModalOpen(false)} dark={theme === 'dark'} header='정말로 토큰을 재발급하시겠습니까?'> +

기존에 사용중이시던 토큰은 더 이상 사용하실 수 없습니다

+
+ + +
+
- = ({ user, spec, bot, theme, {touched.webhook && errors.webhook ?
{errors.webhook}
: null} - setModalOpen(false)} dark={theme === 'dark'} header='정말로 토큰을 재발급하시겠습니까?'> -

기존에 사용중이시던 토큰은 더 이상 사용하실 수 없습니다

-
- - -
-
)} -
+ */}