diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index b2f69c5b..b0c6cb2d 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 48563938..2b4fd23f 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}