From 08ce78dbd97ad792e163482f454f285557c7cdd0 Mon Sep 17 00:00:00 2001 From: Alberto Duarte Delgado Date: Wed, 1 Apr 2026 13:03:25 +0100 Subject: Mejoras de UX y feedback de errores; y, manejo de status de reserva --- src/app/(protected)/(tabs)/profile/index.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/app/(protected)/(tabs)/profile') 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 ? {updateError} : null} - {successMessage ? {successMessage} : null} + {updateError ? : null} + {successMessage ? : null} @@ -191,9 +192,7 @@ const styles = StyleSheet.create({ fontWeight: '600', }, error: { - color: 'red', - }, - success: { - color: 'green', + color: '#9f1d35', + textAlign: 'center', }, }); -- cgit v1.2.3-54-g00ecf