From 3f8124be1294f068cbeb00f6035bf94c356cc84a Mon Sep 17 00:00:00 2001 From: Atridad Lahiji <88056492+atridadl@users.noreply.github.com> Date: Mon, 19 Jun 2023 16:39:05 -0600 Subject: [PATCH] Added Loading to Navbar --- src/components/Navbar.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index a135a86..9dde484 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -25,10 +25,6 @@ const Navbar: React.FC = ({ title }) => { Sign In ); - } else { -
- -
; } }; @@ -55,7 +51,13 @@ const Navbar: React.FC = ({ title }) => { - {navigationMenu()} + {sessionStatus === "loading" ? ( +
+ +
+ ) : ( + navigationMenu() + )} {sessionData?.user.image && (