|
1 | 1 | /* |
2 | 2 | * This file is part of Edgehog. |
3 | 3 | * |
4 | | - * Copyright 2021-2025 SECO Mind Srl |
| 4 | + * Copyright 2021-2026 SECO Mind Srl |
5 | 5 | * |
6 | 6 | * Licensed under the Apache License, Version 2.0 (the "License"); |
7 | 7 | * you may not use this file except in compliance with the License. |
|
20 | 20 |
|
21 | 21 | import { Navigate, useRoutes } from "react-router-dom"; |
22 | 22 |
|
23 | | -import Footer from "@/components/Footer"; |
24 | | -import Sidebar from "@/components/Sidebar"; |
25 | | -import Topbar from "@/components/Topbar"; |
| 23 | +// import Footer from "@/components/Footer"; |
| 24 | +// import Sidebar from "@/components/Sidebar"; |
| 25 | +// import Topbar from "@/components/Topbar"; |
26 | 26 | import { useAuth } from "@/contexts/Auth"; |
27 | 27 | import { Route } from "@/Navigation"; |
28 | 28 | import Application from "@/pages/Application"; |
@@ -70,7 +70,7 @@ import DeploymentCampaign from "@/pages/DeploymentCampaign"; |
70 | 70 | import DeploymentCampaignCreate from "@/pages/DeploymentCampaignCreate"; |
71 | 71 | import Deployment from "@/pages/Deployment"; |
72 | 72 |
|
73 | | -import { bugs, repository, version } from "../package.json"; |
| 73 | +// import { bugs, repository, version } from "../package.json"; |
74 | 74 |
|
75 | 75 | type RouterRule = { |
76 | 76 | path: string; |
@@ -139,28 +139,28 @@ function App() { |
139 | 139 |
|
140 | 140 | return ( |
141 | 141 | <div data-testid="app" className="d-flex vh-100 flex-column"> |
142 | | - {auth.isAuthenticated && ( |
| 142 | + {/* {auth.isAuthenticated && ( |
143 | 143 | <header className="flex-grow-0"> |
144 | 144 | <Topbar /> |
145 | 145 | </header> |
146 | | - )} |
| 146 | + )} */} |
147 | 147 | <main className="vh-100 flex-grow-1 d-flex overflow-hidden"> |
148 | | - {auth.isAuthenticated && ( |
| 148 | + {/* {auth.isAuthenticated && ( |
149 | 149 | <aside className="flex-grow-0 flex-shrink-0 overflow-auto"> |
150 | 150 | <Sidebar /> |
151 | 151 | </aside> |
152 | | - )} |
| 152 | + )} */} |
153 | 153 | <section className="flex-grow-1 overflow-auto">{RouterElement}</section> |
154 | 154 | </main> |
155 | | - {auth.isAuthenticated && ( |
| 155 | + {/* {auth.isAuthenticated && ( |
156 | 156 | <Footer |
157 | 157 | appName={"Edgehog Device Manager"} |
158 | 158 | appVersion={version} |
159 | 159 | homepageUrl={repository.url} |
160 | 160 | repoUrl={repository.url} |
161 | 161 | issueTrackerUrl={bugs.url} |
162 | 162 | /> |
163 | | - )} |
| 163 | + )} */} |
164 | 164 | </div> |
165 | 165 | ); |
166 | 166 | } |
|
0 commit comments