diff options
| author | Alberto Duarte Delgado <alberto@albertoduarte.com> | 2026-04-01 13:03:25 +0100 |
|---|---|---|
| committer | Alberto Duarte Delgado <alberto@albertoduarte.com> | 2026-04-01 13:03:25 +0100 |
| commit | 08ce78dbd97ad792e163482f454f285557c7cdd0 (patch) | |
| tree | 998ce8d7d48f8344d9ec34691809f2482cde5136 /src/app/(protected)/(tabs)/profile/index.tsx | |
| parent | c927739f8f221feabb6e19af2c2667eda905a2eb (diff) | |
Mejoras de UX y feedback de errores; y, manejo de status de reserva
Diffstat (limited to 'src/app/(protected)/(tabs)/profile/index.tsx')
| -rw-r--r-- | src/app/(protected)/(tabs)/profile/index.tsx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/app/(protected)/(tabs)/profile/index.tsx b/src/app/(protected)/(tabs)/profile/index.tsx index 1e87f21..760b352 100644 --- a/src/app/(protected)/(tabs)/profile/index.tsx +++ b/src/app/(protected)/(tabs)/profile/index.tsx @@ -12,6 +12,7 @@ import { useAuthSession } from '@/providers/AuthProvider'; import { useProfile } from '@/features/profile/hooks/useProfile'; import { useUpdateProfile } from '@/features/profile/hooks/useUpdateProfile'; import { router } from 'expo-router'; +import { StatusMessage } from '@/shared/ui/StatusMessage'; export default function ProfileScreen() { const { logout } = useAuthSession(); @@ -96,8 +97,8 @@ export default function ProfileScreen() { autoCorrect={false} /> - {updateError ? <Text style={styles.error}>{updateError}</Text> : null} - {successMessage ? <Text style={styles.success}>{successMessage}</Text> : null} + {updateError ? <StatusMessage message={updateError} /> : null} + {successMessage ? <StatusMessage message={successMessage} tone="success" /> : null} <Pressable style={styles.button} onPress={submit} disabled={isSubmitting}> <Text style={styles.buttonText}> @@ -191,9 +192,7 @@ const styles = StyleSheet.create({ fontWeight: '600', }, error: { - color: 'red', - }, - success: { - color: 'green', + color: '#9f1d35', + textAlign: 'center', }, }); |