lint and format

This commit is contained in:
2024-08-11 15:28:53 +02:00
parent da0cccfb0e
commit 57c5998435
36 changed files with 407 additions and 397 deletions

View File

@@ -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