Skip to content

Commit 32af75e

Browse files
minor flow changes
1 parent 5af2836 commit 32af75e

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/layouts/SubPageLayout.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export default function SubPageLayout() {
3131
const handleLogout = () => {
3232
logout();
3333
setShowDropdown(false);
34-
navigate('/');
3534
};
3635

3736
return (
@@ -73,7 +72,13 @@ export default function SubPageLayout() {
7372
>
7473
{/* User Info */}
7574
<div className="px-4 py-3 border-b border-slate-100 bg-gradient-to-r from-blue-50 to-indigo-50 flex items-center gap-3">
76-
<div className='w-7 h-7 rounded-full'><img className='rounded-full' src={user.profileImage ? `${user.profileImage}?t=${Date.now()}` : user.profileImage} alt={user.name} /></div>
75+
<div className='w-7 h-7 rounded-full'>
76+
{user.profileImage? <img className='rounded-full' src={user.profileImage} alt={user.name} /> : <UserAvatar
77+
src={user.profileImage ? `${user.profileImage}?t=${Date.now()}` : user.profileImage}
78+
alt={user.name}
79+
size="sm"
80+
/>}
81+
</div>
7782
<div>
7883
<p className="font-semibold text-slate-900 truncate">{user.name}</p>
7984
<p className="text-xs text-slate-600 truncate">{user.email}</p>

0 commit comments

Comments
 (0)