Skip to content

Commit

Permalink
Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
adityapawar1 committed Nov 27, 2023
1 parent ca94293 commit 0b68501
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
8 changes: 2 additions & 6 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"assetBundlePatterns": [
"**/*"
],
"assetBundlePatterns": ["**/*"],
"ios": {
"supportsTablet": true
},
Expand All @@ -29,8 +27,6 @@
"web": {
"favicon": "./assets/favicon.png"
},
"plugins": [
"expo-router"
]
"plugins": ["expo-router"]
}
}
21 changes: 12 additions & 9 deletions src/app/auth/signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import { Redirect, Link, router } from 'expo-router';
import React, { useEffect, useState } from 'react';
import { Alert, Text, View, StyleSheet } from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';
import { Button, Input } from 'react-native-elements'
import { Button, Input } from 'react-native-elements';
import validator from 'validator';

import StyledButton from '../../components/StyledButton/StyledButton';
import UserStringInput from '../../components/UserStringInput/UserStringInput';

import Icon from '../../../assets/icons';
import colors from '../../styles/colors';

import globalStyles from '../../styles/globalStyles';
import { useSession } from '../../utils/AuthContext';
import supabase from '../../utils/supabase';
Expand All @@ -29,7 +29,7 @@ function SignUpScreen() {
const [passwordTextHidden, setPasswordTextHidden] = useState(true);
const [loading, setLoading] = useState(false);
const validUsernameCharacters = /^\w+$/g;

const [passwordComplexity, setPasswordComplexity] = useState(false);
const [hasUppercase, setHasUppercase] = useState(false);
const [hasLowercase, setHasLowercase] = useState(false);
Expand Down Expand Up @@ -273,11 +273,14 @@ function SignUpScreen() {
<View style={[globalStyles.verticallySpaced, globalStyles.mt20]}>
<Button
title="Sign Up"
disabled={!passwordComplexity || loading ||
emailError != '' ||
usernameError != '' ||
email.length == 0 ||
username.length == 0}
disabled={
!passwordComplexity ||
loading ||
emailError != '' ||
usernameError != '' ||
email.length == 0 ||
username.length == 0
}
onPress={signUpWithEmail}
/>
</View>
Expand Down Expand Up @@ -313,7 +316,7 @@ const styles = StyleSheet.create({
},
icon: {
marginRight: 10,
},
},
passwordComplexity: {
display: 'flex',
flexDirection: 'row',
Expand Down

0 comments on commit 0b68501

Please sign in to comment.