Skip to content

Commit

Permalink
Revert to justin's code
Browse files Browse the repository at this point in the history
  • Loading branch information
adityapawar1 committed Apr 19, 2024
1 parent f8d8670 commit b49e82e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 51 deletions.
56 changes: 6 additions & 50 deletions src/app/auth/signup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,56 +154,12 @@ function SignUpScreen() {
{'Read stories from \nyoung creators'}
</Text>

<UserStringInput
placeholder="First Name"
label="First Name"
placeholderTextColor={colors.darkGrey}
onChange={text => setFirstName(text.replaceAll(/[^a-zA-Z]/g, ''))}
value={firstName}
/>
<UserStringInput
placeholder="Last Name"
label="Last Name"
placeholderTextColor={colors.darkGrey}
onChange={text => setLastName(text.replaceAll(/[^a-zA-Z]/g, ''))}
value={lastName}
/>
<UserStringInput
placeholder="Email"
label="Email"
placeholderTextColor={colors.darkGrey}
onChange={setAndCheckEmail}
value={email}
attributes={{
textContentType: 'emailAddress',
secureTextEntry: false,
}}
/>
{emailError && (
<Text style={[globalStyles.errorMessage, styles.inputError]}>
{emailError}
</Text>
)}

<UserStringInput
placeholder="Password"
label="Password"
placeholderTextColor={colors.darkGrey}
onChange={text => {
setPassword(text);
checkPassword(text);
}}
value={password}
attributes={{
textContentType: 'password',
secureTextEntry: passwordTextHidden,
}}
>
<RNEIcon
name={passwordTextHidden ? 'visibility-off' : 'visibility'}
type="material"
style={styles.icon}
onPress={() => setPasswordTextHidden(!passwordTextHidden)}
<UserStringInput
placeholder="Username"
label="Username"
placeholderTextColor={colors.darkGrey}
onChange={setAndCheckUsername}
value={username}
/>
{usernameError && (
<Text style={[globalStyles.errorMessage, styles.inputError]}>
Expand Down
1 change: 0 additions & 1 deletion src/styles/globalStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ export default StyleSheet.create({
textAlign: 'left',
color: 'black',
},

subtext: {
fontFamily: 'Manrope-Regular',
fontSize: 12,
Expand Down

0 comments on commit b49e82e

Please sign in to comment.