remove unused moment
This commit is contained in:
parent
6d37b74706
commit
195ee714e9
|
|
@ -45,24 +45,24 @@ export const DataStep = ({ nextStep }: DataStepProps) => {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const handleSubmit = () => {
|
// const handleSubmit = () => {
|
||||||
form.handleSubmit(async (values: FormValues) => {
|
// form.handleSubmit(async (values: FormValues) => {
|
||||||
try {
|
// try {
|
||||||
rootStore.setName(values.name);
|
// rootStore.setName(values.name);
|
||||||
|
//
|
||||||
if (values.author) {
|
// if (values.author) {
|
||||||
rootStore.setAuthor(values.author);
|
// rootStore.setAuthor(values.author);
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
const res = await auth.mutateAsync();
|
// const res = await auth.mutateAsync();
|
||||||
sessionStorage.setItem("auth_v1_token", res.data.auth_v1_token);
|
// sessionStorage.setItem("auth_v1_token", res.data.auth_v1_token);
|
||||||
|
//
|
||||||
nextStep();
|
// nextStep();
|
||||||
} catch (error) {
|
// } catch (error) {
|
||||||
console.error("Error:", error);
|
// console.error("Error:", error);
|
||||||
}
|
// }
|
||||||
})();
|
// })();
|
||||||
};
|
// };
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section className={"mt-4 px-4 pb-8"}>
|
<section className={"mt-4 px-4 pb-8"}>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue