-
-
Notifications
You must be signed in to change notification settings - Fork 4
feature/mantine form with validation for host signup #9
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/host-a-refugee/host-a-refugee/JCU6UzvdjPLgjPbGhWoXAvFVdqk8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this route is protected and required user to be logged in I think it would be good to just use the user's session info from next-auth for name and email when submitting form instead of having them manually fill this out.
<Title order={3}>Find a host</Title> | ||
<Space h="lg" /> | ||
|
||
<form onSubmit={form.onSubmit(onSubmitHandler)}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we just use the session.user.name from NextAuth for this instead of having them fill it out?
components/hostSignup.tsx
Outdated
label="First Name" | ||
required | ||
/> | ||
<TextInput |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we just use the session.user.name from NextAuth for this instead of having them fill it out?
label="Phone Number" | ||
required | ||
/> | ||
<TextInput |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we just use the session.user.email from NextAuth for this instead of having them fill it out?
No description provided.