Skip to content

Commit

Permalink
perf: set avatar image priority (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
aamirazad authored Jun 19, 2024
1 parent 6289884 commit 9d4d735
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/topnav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ function UserSettings() {
src={user.imageUrl}
width={32}
height={32}
priority={true}
alt="Avatar"
className="mt-1 overflow-hidden rounded-full"
/>
Expand Down Expand Up @@ -73,8 +74,8 @@ function UserSettings() {
<AlertDialogFooter>
<AlertDialogCancel>Cancel</AlertDialogCancel>
<AlertDialogAction
onClick={() => {
signOut();
onClick={async () => {
await signOut();
}}
>
Continue
Expand Down

0 comments on commit 9d4d735

Please sign in to comment.