summaryrefslogtreecommitdiffstats
path: root/src/app/(protected)/(tabs)/home.tsx
diff options
context:
space:
mode:
authorAlberto Duarte Delgado <alberto@albertoduarte.com>2026-03-30 18:12:23 +0100
committerAlberto Duarte Delgado <alberto@albertoduarte.com>2026-03-30 18:12:23 +0100
commit7a196010214db6a1789760958eee5228374a7745 (patch)
treee8d936b04bdf72acbe9c5910fee95add0bef7e94 /src/app/(protected)/(tabs)/home.tsx
parent174f1acd46c4ffbde88c04465e8fa6b6810ce113 (diff)
logica perfil de usuario
Diffstat (limited to 'src/app/(protected)/(tabs)/home.tsx')
-rw-r--r--src/app/(protected)/(tabs)/home.tsx42
1 files changed, 34 insertions, 8 deletions
diff --git a/src/app/(protected)/(tabs)/home.tsx b/src/app/(protected)/(tabs)/home.tsx
index 76a5bda..d9e64ac 100644
--- a/src/app/(protected)/(tabs)/home.tsx
+++ b/src/app/(protected)/(tabs)/home.tsx
@@ -1,8 +1,9 @@
+import { Link } from 'expo-router';
import { Pressable, StyleSheet, Text, View } from 'react-native';
import { useAuthSession } from '@/providers/AuthProvider';
export default function HomeScreen() {
- const { user, logout } = useAuthSession();
+ const { user } = useAuthSession();
return (
<View style={styles.container}>
@@ -12,9 +13,25 @@ export default function HomeScreen() {
</Text>
<Text style={styles.email}>{user?.email}</Text>
- <Pressable style={styles.button} onPress={logout}>
- <Text style={styles.buttonText}>Cerrar sesión</Text>
- </Pressable>
+ <View style={styles.actions}>
+ <Link href="/(protected)/(tabs)/offices" asChild>
+ <Pressable style={styles.button}>
+ <Text style={styles.buttonText}>Ver espacios</Text>
+ </Pressable>
+ </Link>
+
+ <Link href="/(protected)/(tabs)/reservations" asChild>
+ <Pressable style={styles.button}>
+ <Text style={styles.buttonText}>Mis reservas</Text>
+ </Pressable>
+ </Link>
+
+ <Link href="/(protected)/(tabs)/profile" asChild>
+ <Pressable style={styles.secondaryButton}>
+ <Text style={styles.buttonText}>Ir a perfil</Text>
+ </Pressable>
+ </Link>
+ </View>
</View>
);
}
@@ -22,23 +39,32 @@ export default function HomeScreen() {
const styles = StyleSheet.create({
container: {
flex: 1,
+ padding: 16,
justifyContent: 'center',
- padding: 24,
gap: 12,
},
title: {
- fontSize: 28,
+ fontSize: 30,
fontWeight: '700',
},
subtitle: {
fontSize: 18,
},
email: {
- color: '#555',
+ color: '#666',
marginBottom: 20,
},
+ actions: {
+ gap: 12,
+ },
button: {
- backgroundColor: '#c62828',
+ backgroundColor: '#1f6feb',
+ paddingVertical: 14,
+ borderRadius: 10,
+ alignItems: 'center',
+ },
+ secondaryButton: {
+ backgroundColor: '#555',
paddingVertical: 14,
borderRadius: 10,
alignItems: 'center',