From 32de7bd4bb227d1d351261d36aa1f7ae228c6e61 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Mon, 30 Sep 2024 16:00:09 +0530 Subject: [PATCH] feat: wrap recording & exit buttons inside user !null check --- src/components/molecules/NavBar.tsx | 140 ++++++++++++++-------------- 1 file changed, 71 insertions(+), 69 deletions(-) diff --git a/src/components/molecules/NavBar.tsx b/src/components/molecules/NavBar.tsx index e42a615a..be749d63 100644 --- a/src/components/molecules/NavBar.tsx +++ b/src/components/molecules/NavBar.tsx @@ -54,76 +54,78 @@ export const NavBar = ({ newRecording, recordingName, isRecording }: NavBarProps return ( -
- -
Maxun
-
-
- - {isRecording ? 'NEW' : 'RECORD'} - - { - recordingLength > 0 - ? - : null - } - {isRecording ? - : null} - { - user !== null ? ( - + : null} + +
+ + ) : "" } - }} onClick={logout}> - - logout - ) : "" - } -
);