Finish user detail page refactor

This commit is contained in:
lizerk 2026-04-02 10:32:24 +03:00
parent e3e195c89d
commit 9989c98af4
2 changed files with 128 additions and 821 deletions

File diff suppressed because it is too large Load Diff

View File

@ -59,12 +59,14 @@ export default function EditUserProfileModal({
<div className="flex items-center gap-4">
<div className="flex h-20 w-20 items-center justify-center overflow-hidden rounded-full bg-sky-400 text-xl font-semibold text-white">
{form.avatarPreview ? (
// eslint-disable-next-line @next/next/no-img-element
<img
src={form.avatarPreview}
alt="Preview"
className="h-full w-full object-cover"
/>
) : avatarUrl && !avatarFailed ? (
// eslint-disable-next-line @next/next/no-img-element
<img
src={avatarUrl}
alt="Avatar"