Fix some UI issues 2

This commit is contained in:
Urtzi Alfaro
2025-09-24 21:54:49 +02:00
parent d59b92a1b4
commit dc6c6f213f
16 changed files with 1036 additions and 141 deletions

View File

@@ -17,6 +17,7 @@ interface ProfileFormData {
phone: string;
language: string;
timezone: string;
avatar?: string;
}
interface PasswordData {
@@ -66,7 +67,8 @@ const ProfilePage: React.FC = () => {
email: profile.email || '',
phone: profile.phone || '',
language: profile.language || 'es',
timezone: profile.timezone || 'Europe/Madrid'
timezone: profile.timezone || 'Europe/Madrid',
avatar: profile.avatar || ''
});
// Update notification preferences with profile data
@@ -381,8 +383,9 @@ const ProfilePage: React.FC = () => {
<div className="flex items-center gap-6">
<div className="relative">
<Avatar
src={profile?.avatar_url}
name={`${profileData.first_name} ${profileData.last_name}`}
src={profile?.avatar || undefined}
alt={profile?.full_name || `${profileData.first_name} ${profileData.last_name}` || 'Usuario'}
name={profile?.avatar ? (profile?.full_name || `${profileData.first_name} ${profileData.last_name}`) : undefined}
size="xl"
className="w-20 h-20"
/>