From 195ee714e9b90af5c27ad709f6e8940973ce32b3 Mon Sep 17 00:00:00 2001 From: user Date: Fri, 24 May 2024 14:15:19 +0300 Subject: [PATCH] remove unused moment --- src/pages/root/steps/data-step/index.tsx | 36 ++++++++++++------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/pages/root/steps/data-step/index.tsx b/src/pages/root/steps/data-step/index.tsx index e5bd4fe..eaa7de9 100644 --- a/src/pages/root/steps/data-step/index.tsx +++ b/src/pages/root/steps/data-step/index.tsx @@ -45,24 +45,24 @@ export const DataStep = ({ nextStep }: DataStepProps) => { }, }); - const handleSubmit = () => { - form.handleSubmit(async (values: FormValues) => { - try { - rootStore.setName(values.name); - - if (values.author) { - rootStore.setAuthor(values.author); - } - - const res = await auth.mutateAsync(); - sessionStorage.setItem("auth_v1_token", res.data.auth_v1_token); - - nextStep(); - } catch (error) { - console.error("Error:", error); - } - })(); - }; + // const handleSubmit = () => { + // form.handleSubmit(async (values: FormValues) => { + // try { + // rootStore.setName(values.name); + // + // if (values.author) { + // rootStore.setAuthor(values.author); + // } + // + // const res = await auth.mutateAsync(); + // sessionStorage.setItem("auth_v1_token", res.data.auth_v1_token); + // + // nextStep(); + // } catch (error) { + // console.error("Error:", error); + // } + // })(); + // }; return (