From 3273e7a0fbbce82f4ce6cacbcdb7b6d6848f6c1b Mon Sep 17 00:00:00 2001 From: JustZvan Date: Mon, 6 Apr 2026 15:32:51 +0200 Subject: feat: gallery scanning preferences --- app/(auth)/signup.tsx | 43 ++++++++++++++++++++++++++++++++++--------- 1 file changed, 34 insertions(+), 9 deletions(-) (limited to 'app/(auth)/signup.tsx') diff --git a/app/(auth)/signup.tsx b/app/(auth)/signup.tsx index 127ea9f..eded0b6 100644 --- a/app/(auth)/signup.tsx +++ b/app/(auth)/signup.tsx @@ -2,22 +2,28 @@ import { Ionicons } from "@expo/vector-icons"; import { router } from "expo-router"; import { useState } from "react"; import { - KeyboardAvoidingView, - Platform, - ScrollView, - StyleSheet, - Text, - TouchableOpacity, - View, + KeyboardAvoidingView, + Platform, + ScrollView, + StyleSheet, + Text, + TouchableOpacity, + View, } from "react-native"; import { SafeAreaView } from "react-native-safe-area-context"; import { useAuth } from "../../lib/auth"; +import { useGoogleAuth } from "../../lib/google-auth"; import { t } from "../../lib/locales"; import { colors } from "../../lib/theme"; import { Button, H1, Muted, TextInput } from "../../lib/ui"; export default function SignUp() { const { signUp } = useAuth(); + const { + continueWithGoogle, + isLoading: googleLoading, + error: googleError, + } = useGoogleAuth(); const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); const [confirmPassword, setConfirmPassword] = useState(""); @@ -66,7 +72,7 @@ export default function SignUp() { if (!result.success) { setError(result.reason || t("signUpError")); } - } catch (e) { + } catch { setError(t("signUpError")); } finally { setLoading(false); @@ -129,8 +135,23 @@ export default function SignUp() { title={t("signUp")} onPress={handleSignUp} loading={loading} - disabled={loading} + disabled={loading || googleLoading} /> + +