Skip to content

Commit

Permalink
[user account] fix trigger accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
sabovyan committed Nov 21, 2023
1 parent 8d0137f commit 1c4ca65
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions components/UserAccount/UserAccount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Session } from 'next-auth';

import { GoogleSignIn, Logout, WebAuthn } from './AuthComponents';
import profileImage from './profile-user.png';
import { Button } from '../ui/button';
import {
DropdownMenu,
DropdownMenuTrigger,
Expand All @@ -25,13 +26,15 @@ export function UserAccount({ session }: Props) {
return (
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Image
src={imageSrc}
alt="profile image"
width={24}
height={24}
className="rounded-full"
/>
<Button variant="ghost" size="icon">
<Image
src={imageSrc}
alt="profile image"
width={32}
height={32}
className="rounded-full"
/>
</Button>
</DropdownMenuTrigger>
{session?.user ? (
<DropdownMenuContent>
Expand Down

0 comments on commit 1c4ca65

Please sign in to comment.