fix(paciente):removed the option to edit patient photos

This commit is contained in:
M-Gabrielly 2025-12-03 22:47:08 -03:00
parent 171c954a78
commit 62cced521f

View File

@ -1888,16 +1888,6 @@ export default function PacientePage() {
<div className="border border-border rounded-lg p-3 sm:p-4 md:p-6"> <div className="border border-border rounded-lg p-3 sm:p-4 md:p-6">
<h3 className="text-base sm:text-lg md:text-lg font-semibold mb-3 sm:mb-4">Foto do Perfil</h3> <h3 className="text-base sm:text-lg md:text-lg font-semibold mb-3 sm:mb-4">Foto do Perfil</h3>
{isEditingProfile ? (
<div className="flex justify-center">
<UploadAvatar
userId={profileData.id}
currentAvatarUrl={profileData.foto_url || "/avatars/01.png"}
onAvatarChange={(newUrl) => handleProfileChange('foto_url', newUrl)}
userName={profileData.nome}
/>
</div>
) : (
<div className="flex flex-col items-center gap-3 sm:gap-4"> <div className="flex flex-col items-center gap-3 sm:gap-4">
<Avatar className="h-20 w-20 sm:h-24 sm:w-24 md:h-28 md:w-28"> <Avatar className="h-20 w-20 sm:h-24 sm:w-24 md:h-28 md:w-28">
<AvatarImage src={profileData.foto_url} alt={profileData.nome || 'Avatar'} /> <AvatarImage src={profileData.foto_url} alt={profileData.nome || 'Avatar'} />
@ -1912,7 +1902,6 @@ export default function PacientePage() {
</p> </p>
</div> </div>
</div> </div>
)}
</div> </div>
</div> </div>
</div> </div>