Миграции, сборка

This commit is contained in:
Халимов Рустам
2026-03-27 23:09:16 +03:00
parent 030ae1e4e4
commit ba5c5210d4
43 changed files with 406 additions and 194 deletions

View File

@@ -501,14 +501,14 @@ export default function UserProfile({ userId, chatId, onClose, onGoToMessage, is
</div>
) : (
<h3 className="mt-5 text-[24px] font-semibold text-white tracking-tight text-center px-4">
{profile.displayName || profile.userName || profile.username}
{profile.displayName || profile.userName || profile.username || ''}
</h3>
)}
{/* Username (неизменяемый) */}
<div className="flex items-center gap-1.5 mt-2 bg-accent/10 px-4 py-1.5 rounded-full border border-accent/20 cursor-default">
<AtSign size={14} className="text-accent" />
<span className="text-sm font-medium text-accent">{profile.userName || profile.username}</span>
<span className="text-sm font-medium text-accent">{profile.userName || profile.username || ''}</span>
</div>
{/* Онлайн статус */}
@@ -985,10 +985,10 @@ export default function UserProfile({ userId, chatId, onClose, onGoToMessage, is
user: {
id: profile.id,
userName: profile.userName || profile.username || '',
username: profile.username,
displayName: profile.displayName,
avatar: profile.avatar,
avatarUrl: profile.avatarUrl || profile.avatar
username: profile.username || '',
displayName: profile.displayName || '',
avatar: profile.avatar ?? null,
avatarUrl: (profile.avatarUrl || profile.avatar) ?? null
},
stories: sortedStories,
hasUnviewed: false