From 9d4d7356b2a5e60a08e1a2106c32547ae1992525 Mon Sep 17 00:00:00 2001 From: Aamir Azad <82281117+aamirazad@users.noreply.github.com> Date: Wed, 19 Jun 2024 12:02:46 +0530 Subject: [PATCH] perf: set avatar image priority (#17) --- src/components/topnav.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/topnav.tsx b/src/components/topnav.tsx index 6fb514e..29c4897 100644 --- a/src/components/topnav.tsx +++ b/src/components/topnav.tsx @@ -43,6 +43,7 @@ function UserSettings() { src={user.imageUrl} width={32} height={32} + priority={true} alt="Avatar" className="mt-1 overflow-hidden rounded-full" /> @@ -73,8 +74,8 @@ function UserSettings() { Cancel { - signOut(); + onClick={async () => { + await signOut(); }} > Continue