diff --git a/components/pages/main/Entry.tsx b/components/pages/main/Entry.tsx index d7f9211..8953fad 100644 --- a/components/pages/main/Entry.tsx +++ b/components/pages/main/Entry.tsx @@ -8,7 +8,7 @@ const Entry = () => { const [tab, setTab] = useState<"register" | "login" | "reset-password">("login"); return ( - + {tab === "register" && } {tab === "login" && } {tab === "reset-password" && } diff --git a/components/pages/main/SignInPage.tsx b/components/pages/main/SignInPage.tsx index 216d420..b7d9160 100644 --- a/components/pages/main/SignInPage.tsx +++ b/components/pages/main/SignInPage.tsx @@ -167,7 +167,7 @@ const SignInPage = ({ bottom width="100%" height="70%" - containerStyle={{ padding: 0 }} + containerStyle={{ padding: 15, backgroundColor:"white" }} > {hasPermission === null ? ( Requesting camera permissions... @@ -175,7 +175,7 @@ const SignInPage = ({ No access to camera ) : ( setShowCameraDialog(false)} backgroundColor="#fd1775" - style={{ margin: 10 }} + style={{ margin: 10, marginBottom: 30 }} /> diff --git a/components/pages/main/SignUpPage.tsx b/components/pages/main/SignUpPage.tsx index b2dc9ac..361dbb6 100644 --- a/components/pages/main/SignUpPage.tsx +++ b/components/pages/main/SignUpPage.tsx @@ -1,218 +1,218 @@ -import React, { useRef, useState } from "react"; +import React, {useRef, useState} from "react"; import { - Button, - ButtonSize, - Checkbox, - Text, - TextField, - TextFieldRef, - TouchableOpacity, - View, + Button, + ButtonSize, + Checkbox, + Text, + TextField, + TextFieldRef, + TouchableOpacity, + View, } from "react-native-ui-lib"; -import { useSignUp } from "@/hooks/firebase/useSignUp"; -import { ProfileType } from "@/contexts/AuthContext"; -import { Dimensions, StyleSheet } from "react-native"; -import { AntDesign } from "@expo/vector-icons"; +import {useSignUp} from "@/hooks/firebase/useSignUp"; +import {StyleSheet} from "react-native"; +import {AntDesign} from "@expo/vector-icons"; const SignUpPage = ({ - setTab, -}: { - setTab: React.Dispatch< - React.SetStateAction<"register" | "login" | "reset-password"> - >; + setTab, + }: { + setTab: React.Dispatch< + React.SetStateAction<"register" | "login" | "reset-password"> + >; }) => { - const [email, setEmail] = useState(""); - const [firstName, setFirstName] = useState(""); - const [lastName, setLastName] = useState(""); - const [password, setPassword] = useState(""); + const [email, setEmail] = useState(""); + const [firstName, setFirstName] = useState(""); + const [lastName, setLastName] = useState(""); + const [password, setPassword] = useState(""); - const [isPasswordVisible, setIsPasswordVisible] = useState(false); - const [allowFaceID, setAllowFaceID] = useState(false); - const [acceptTerms, setAcceptTerms] = useState(false); - const { mutateAsync: signUp } = useSignUp(); + const [isPasswordVisible, setIsPasswordVisible] = useState(false); + const [allowFaceID, setAllowFaceID] = useState(false); + const [acceptTerms, setAcceptTerms] = useState(false); + const {mutateAsync: signUp} = useSignUp(); - const lnameRef = useRef(null); - const emailRef = useRef(null); - const passwordRef = useRef(null); + const lnameRef = useRef(null); + const emailRef = useRef(null); + const passwordRef = useRef(null); - const handleSignUp = async () => { - await signUp({ email, password, firstName, lastName }); - }; + const handleSignUp = async () => { + await signUp({email, password, firstName, lastName}); + }; - return ( - - Get started with Cally - - Please enter your details. - - { - lnameRef.current?.focus(); - }} - blurOnSubmit={false} - /> - { - emailRef.current?.focus(); - }} - blurOnSubmit={false} - /> - { - passwordRef.current?.focus(); - }} - blurOnSubmit={false} - /> - - setIsPasswordVisible(!isPasswordVisible)} - > - - - } - /> - - - - { - setAllowFaceID(value); - }} - /> - - Allow FaceID for login in future - - - - setAcceptTerms(value)} - /> - - - I accept the + return ( + + Get started with Cally + + Please enter your details. - - - {" "} - terms and conditions - - - and - - - {" "} - privacy policy - - - - - - -