-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ed4541
commit 0798640
Showing
14 changed files
with
111 additions
and
18,413 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,20 +17,19 @@ type RegisterFormData = { | |
passwordConfirm: string; | ||
}; | ||
|
||
const registerSchema = z | ||
.object({ | ||
firstName: z.string().min(2, { | ||
message: 'First name must be at least 2 characters long' | ||
}), | ||
lastName: z.string().min(2, { | ||
message: 'Last name must be at least 2 characters long' | ||
}), | ||
email: z.string().email({ message: 'Invalid email' }), | ||
password: z | ||
.string() | ||
.min(8, { message: 'Password must be at least 8 characters long' }), | ||
passwordConfirm: z.string() | ||
}) | ||
const registerSchema = z.object({ | ||
firstName: z.string().min(2, { | ||
message: 'First name must be at least 2 characters long' | ||
}), | ||
lastName: z.string().min(2, { | ||
message: 'Last name must be at least 2 characters long' | ||
}), | ||
email: z.string().email({ message: 'Invalid email' }), | ||
password: z | ||
.string() | ||
.min(8, { message: 'Password must be at least 8 characters long' }), | ||
passwordConfirm: z.string() | ||
}); | ||
|
||
const RegistrationForm = () => { | ||
const { | ||
|
@@ -132,7 +131,7 @@ const RegistrationForm = () => { | |
<Input | ||
title="Email" | ||
autoCorrect={false} | ||
placeholder="Northeastern email" | ||
placeholder="[email protected]" | ||
onChangeText={onChange} | ||
value={value} | ||
onSubmitEditing={handleSubmit(onSubmit)} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React from 'react'; | ||
import { SafeAreaView, Text, View } from 'react-native'; | ||
|
||
import Wordmark from '@/components/wordmark'; | ||
|
||
import UserInterestsForm from './_components/user-interest-form'; | ||
|
||
const UserInterests = () => { | ||
return ( | ||
<SafeAreaView> | ||
<View className="px-[8%] pt-[4%]"> | ||
<View className="flex flex-row"> | ||
<Wordmark /> | ||
</View> | ||
<Text className="text-5xl pt-[6%] pb-[5%] font-bold"> | ||
What are you interested in? | ||
</Text> | ||
<UserInterestsForm /> | ||
</View> | ||
</SafeAreaView> | ||
); | ||
}; | ||
|
||
export default UserInterests; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.