Skip to content

Commit

Permalink
fixed form error for sign up
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnafnafee committed Mar 7, 2022
1 parent ca5cac8 commit dc1cf14
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions components/SignUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,12 @@ export default function SignUp() {
return (
<div className="flex flex-col flex-1 justify-between">
<div>
<FormControl isRequired className="my-4" size="md">
<FormControl
isInvalid={Boolean(errors.name)}
isRequired
className="my-4"
size="md"
>
<FormLabel htmlFor="email">First Name</FormLabel>
<InputGroup size="md">
<Input
Expand All @@ -117,7 +122,12 @@ export default function SignUp() {
</InputGroup>
<FormErrorMessage>{errors.name}</FormErrorMessage>
</FormControl>
<FormControl isRequired className="my-4" size="md">
<FormControl
isInvalid={Boolean(errors.email)}
isRequired
className="my-4"
size="md"
>
<FormLabel htmlFor="email">Email address</FormLabel>
<InputGroup size="md">
<Input
Expand All @@ -134,7 +144,11 @@ export default function SignUp() {
</InputGroup>
<FormErrorMessage>{errors.email}</FormErrorMessage>
</FormControl>
<FormControl isRequired className="my-4">
<FormControl
isInvalid={Boolean(errors.password)}
isRequired
className="my-4"
>
<FormLabel htmlFor="password">Password</FormLabel>
<InputGroup size="md">
<Input
Expand Down

1 comment on commit dc1cf14

@vercel
Copy link

@vercel vercel bot commented on dc1cf14 Mar 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checks for Deployment have failed

Please sign in to comment.