From f82ed1ecee956dc106694cdad650fa4bd0a9326e Mon Sep 17 00:00:00 2001 From: ajaythapliyal Date: Sat, 18 Feb 2023 21:57:55 +0530 Subject: [PATCH] restores side bar and conversation transition --- frontend/src/App.tsx | 4 +- frontend/src/Navigation.tsx | 107 ++++++++++++++++-------------------- 2 files changed, 48 insertions(+), 63 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index b2f69c5..b0c6cb2 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -9,13 +9,13 @@ export default function App() { const [navState, setNavState] = useState('ACTIVE'); return ( -
+
setNavState(val)} />
diff --git a/frontend/src/Navigation.tsx b/frontend/src/Navigation.tsx index 4856393..2b4fd23 100644 --- a/frontend/src/Navigation.tsx +++ b/frontend/src/Navigation.tsx @@ -24,71 +24,62 @@ export default function Navigation({ const [apiKeyModalState, setApiKeyModalState] = useState( isApiKeySet ? 'INACTIVE' : 'ACTIVE', ); - const openNav = ( -
-
- -
-
- -
-
{ - setApiKeyModalState('ACTIVE'); - }} - > - key -

Reset Key

-
-
- -
- - info -

About

-
- -
- link -

Discord

-
- -
- link -

Github

-
-
-
- ); - - const closedNav = ( + return ( <> -
-
+
+
+
+ +
+
{ + setApiKeyModalState('ACTIVE'); + }} + > + key +

Reset Key

+
+
+ +
+ + info +

About

+
+ +
+ link +

Discord

+
+ +
+ link +

Github

+
+
- - ); - - return ( - <> - {navState === 'ACTIVE' ? openNav : closedNav}