From cce4d8c796dbb231093ee6d4361e8a4f6afcbf6c Mon Sep 17 00:00:00 2001 From: Aamir Azad Date: Wed, 19 Jun 2024 09:45:47 +0530 Subject: [PATCH] perf: set avatar image priority --- 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