diff --git a/web/src/App.jsx b/web/src/App.jsx index f095aa025..1cc7a1d06 100644 --- a/web/src/App.jsx +++ b/web/src/App.jsx @@ -8,42 +8,46 @@ import { Router } from 'preact-router'; import Sidebar from './Sidebar'; import { DarkModeProvider, DrawerProvider } from './context'; import useSWR from 'swr'; +import i18n from './i18n'; +import { Suspense } from 'preact/compat'; export default function App() { const { data: config } = useSWR('config'); const cameraComponent = config && config.ui.use_experimental ? Routes.getCameraV2 : Routes.getCamera; return ( - - -
- - {!config ? ( -
- -
- ) : ( -
- -
- - - - - - - - - - + }> + + +
+ + {!config ? ( +
+
-
- )} -
- - + ) : ( +
+ +
+ + + + + + + + + + +
+
+ )} +
+ + + ); }