fixed icon profile on button

This commit is contained in:
SlimusMinus
2026-06-30 00:17:28 +03:00
parent 94de4170b6
commit d91637716b
4 changed files with 62 additions and 13 deletions

View File

@@ -332,13 +332,15 @@ export default function MainFeed() {
</button>
</div>
{/* Иконка профиля в правом углу */}
<div className="f-topbar-profile" onClick={() => isAuthenticated ? setProfileModalOpen(true) : setAuthModalOpen(true)}>
{isAuthenticated ? (
{isAuthenticated ? (
<div className="f-topbar-profile" onClick={() => setProfileModalOpen(true)}>
<ProfileAvatar avatar={profileData.avatar} name={`${profileData.firstName || ""} ${profileData.lastName || ""}`} />
) : (
<span className="f-topbar-login-icon">🔑</span>
)}
</div>
</div>
) : (
<button className="f-login-btn" onClick={() => setAuthModalOpen(true)}>
Войти
</button>
)}
</div>
{/* Фильтр по типу объявления */}