Skip to content

Commit

Permalink
add handleFormSubmit function
Browse files Browse the repository at this point in the history
  • Loading branch information
firehawk89 committed Jan 16, 2024
1 parent bc79dd2 commit f203fa7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/Pages/Auth/FormAuth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import FormLabel from '@/components/UI/Form/FormLabel'
import { FC, FormEvent } from 'react'

const AuthForm: FC = () => {
const handleFormSubmit = (e: FormEvent<HTMLFormElement>) =>
console.log(e.target)

return (
<Form
className="mt-5"
onSubmit={(e: FormEvent<HTMLFormElement>) => console.log(e.target)}
>
<Form className="mt-5" onSubmit={handleFormSubmit}>
<FormControl>
<FormLabel htmlFor="email">
Confirm your email and get dynamically generated code
Expand Down

0 comments on commit f203fa7

Please sign in to comment.