diff --git a/app/src/App.js b/app/src/App.js index 397bb565..32bf9fea 100644 --- a/app/src/App.js +++ b/app/src/App.js @@ -12,57 +12,53 @@ import {AppsRoute} from "./components/Apps"; import {InventoryRoute} from "./components/Inventory"; import {ArchiveRoute} from "./components/Archive"; import {FilesRoute} from "./components/Files"; -import {useSettingsInterval} from "./hooks/customHooks"; +import {useStatusInterval} from "./hooks/customHooks"; import {MapRoute} from "./components/Map"; -import {SettingsContext, ThemeContext} from "./contexts/contexts"; +import {StatusContext, ThemeContext} from "./contexts/contexts"; import {ThemeWrapper} from "./components/Theme"; import {Dashboard} from "./Dashboard"; function PageNotFound() { - return ( - -

Page Not Found!

-

The page you requested cannot be found

-
- ) + return ( +

Page Not Found!

+

The page you requested cannot be found

+
) } function Footer() { const {t} = useContext(ThemeContext); - - const {version} = useContext(SettingsContext); + const {status} = useContext(StatusContext); + const {version} = status; return WROLPi v{version} GitHub } export default function App() { - const {settings} = useSettingsInterval(); + const status = useStatusInterval(); - return ( - - -
- -
- <> - - }/> - }/> - }/> - }/> - }/> - }/> - }/> - }/> - }/> - }/> - }/> - - - -