mirror of
https://github.com/ershisan99/todolist_next.git
synced 2026-02-02 21:02:06 +00:00
lint and format
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
import type { FormEvent } from "react";
|
||||
import React from "react";
|
||||
import type { FormEvent } from "react"
|
||||
import React from "react"
|
||||
|
||||
import type { NextPage } from "next";
|
||||
import type { NextPage } from "next"
|
||||
|
||||
import { Button, Input } from "@/components";
|
||||
import { useSignUpMutation } from "@/services";
|
||||
import { Button, Input } from "@/components"
|
||||
import { useSignUpMutation } from "@/services"
|
||||
|
||||
const Login: NextPage = () => {
|
||||
const { mutate: signUp } = useSignUpMutation();
|
||||
const { mutate: signUp } = useSignUpMutation()
|
||||
|
||||
const handleSubmit = (e: FormEvent<HTMLFormElement>) => {
|
||||
e.preventDefault();
|
||||
const formData = new FormData(e.currentTarget);
|
||||
e.preventDefault()
|
||||
const formData = new FormData(e.currentTarget)
|
||||
|
||||
const values = Object.fromEntries(formData) as any;
|
||||
signUp(values);
|
||||
};
|
||||
const values = Object.fromEntries(formData) as any
|
||||
signUp(values)
|
||||
}
|
||||
|
||||
return (
|
||||
<div className={"flex h-screen items-center justify-center"}>
|
||||
@@ -43,7 +43,7 @@ const Login: NextPage = () => {
|
||||
</Button>
|
||||
</form>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
)
|
||||
}
|
||||
|
||||
export default Login;
|
||||
export default Login
|
||||
|
||||
Reference in New Issue
Block a user