From 2eb34f2244efce8cec34949c724cc90b51b43006 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Tue, 30 May 2023 19:00:25 +0200 Subject: [PATCH] Updated the App.jsx --- client/src/App.jsx | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/client/src/App.jsx b/client/src/App.jsx index 2bfc129..5cd321a 100644 --- a/client/src/App.jsx +++ b/client/src/App.jsx @@ -4,17 +4,20 @@ import "@/common/styles/main.sass"; import {BrowserRouter} from "react-router-dom"; import Header from "@/common/components/Header"; import Content from "@/common/components/Content"; +import {useState} from "react"; const App = () => { - return ( - <> - - -
- - - - ) + const [sidebarOpen, setSidebarOpen] = useState(window.innerHeight >= 1024); + + return ( + <> + + +
+ + + + ) } export default App; \ No newline at end of file