From 345641a615ed2b9c17fc5b9b5e4382d5be59b64b Mon Sep 17 00:00:00 2001 From: Leon Morival Date: Sun, 19 Apr 2026 15:02:37 +0200 Subject: [PATCH] clean --- app/(tabs)/index.tsx | 110 +++++++++++++++- app/_layout.tsx | 14 ++- app/login.tsx | 14 +++ app/register.tsx | 14 +++ bun.lock | 7 ++ components/auth/AuthForm.tsx | 237 +++++++++++++++++++++++++++++++++++ components/common/Button.tsx | 11 +- constants/palette.ts | 8 +- constants/styles.ts | 17 +++ lib/firebase-auth-errors.ts | 21 ++++ lib/firebase.ts | 40 ++++-- lib/firestore.ts | 6 +- package.json | 1 + providers/AuthProvider.tsx | 52 ++++++++ services/auth.ts | 53 ++++++++ types/firestore.ts | 4 +- 16 files changed, 583 insertions(+), 26 deletions(-) create mode 100644 app/login.tsx create mode 100644 app/register.tsx create mode 100644 components/auth/AuthForm.tsx create mode 100644 lib/firebase-auth-errors.ts create mode 100644 providers/AuthProvider.tsx create mode 100644 services/auth.ts diff --git a/app/(tabs)/index.tsx b/app/(tabs)/index.tsx index 0a2a9a7..12a8ed5 100644 --- a/app/(tabs)/index.tsx +++ b/app/(tabs)/index.tsx @@ -1,7 +1,107 @@ -import { Text,View } from "react-native"; -import {Button} from "@/components/common/Button"; +import { Redirect, router } from 'expo-router'; +import { ActivityIndicator, StyleSheet, Text, View } from 'react-native'; + +import { Button } from '@/components/common/Button'; +import { Palette } from '@/constants/palette'; +import { Radius, Spacing } from '@/constants/styles'; +import { useAuth } from '@/providers/AuthProvider'; +import { logout } from '@/services/auth'; + export default function Home() { - return -