From cb6d2b9d86f7b150271814e02ebe4cc11c82ea3a Mon Sep 17 00:00:00 2001 From: Florian Dejonckheere Date: Sun, 10 Dec 2023 15:14:20 +0100 Subject: [PATCH] Hide username and alert popover when loading --- src/layouts/navigation.tsx | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/src/layouts/navigation.tsx b/src/layouts/navigation.tsx index f79e5b9..5af73da 100644 --- a/src/layouts/navigation.tsx +++ b/src/layouts/navigation.tsx @@ -37,22 +37,24 @@ export default function Navigation(): ReactElement { className="hs-collapse hidden overflow-hidden transition-all duration-300 basis-full grow sm:block" >
- {isSuccess && ( - - - {data.username.charAt(0).toUpperCase()} - -
- {data.username} - - {data.email} + <> + + + + {data.username.charAt(0).toUpperCase()} -
- +
+ {data.username} + + {data.email} + +
+ + )}