feat(auth): make user icon clickable to trigger login when logged out

This commit is contained in:
Gigi
2025-10-05 22:13:01 +01:00
parent 73da428cd7
commit 61bc64ea26

View File

@@ -79,7 +79,12 @@ const SidebarHeader: React.FC<SidebarHeaderProps> = ({ onToggleCollapse, onLogou
ariaLabel="Settings"
variant="ghost"
/>
<div className="profile-avatar" title={getUserDisplayName()}>
<div
className="profile-avatar"
title={activeAccount ? getUserDisplayName() : "Login"}
onClick={!activeAccount ? (isConnecting ? () => {} : handleLogin) : undefined}
style={{ cursor: !activeAccount ? 'pointer' : 'default' }}
>
{profileImage ? (
<img src={profileImage} alt={getUserDisplayName()} />
) : (