-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.jsx
33 lines (29 loc) · 1.04 KB
/
App.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { Route, Routes, useLocation } from "react-router-dom";
import Configs from "./components/steps/Configs";
import Landing from "./components/steps/Landing";
import Results from "./components/steps/Results";
import Schedules from "./components/steps/Schedules";
import Systems from "./components/steps/Systems";
import Sidebarlayout from "./components/layouts/SidebarLayout";
import LeftNav from "./components/LeftNavigation";
import "./styles/application.scss";
const App = () => {
const location = useLocation();
const isFullScreen = ["/"].includes(location.pathname);
return (
<Sidebarlayout
isFullScreen={isFullScreen}
contentLeft={<LeftNav />}
contentRight={
<Routes>
<Route path="/" element={<Landing />} />
<Route path="/systems" element={<Systems />} />
<Route path="/configs" element={<Configs />} />
<Route path="/schedules" element={<Schedules />} />
<Route path="/results" element={<Results />} />
</Routes>
}
/>
);
};
export default App;