diff --git a/src/components/layout/Header.tsx b/src/components/layout/Header.tsx
index 27fadf06e..15bb9f3d8 100644
--- a/src/components/layout/Header.tsx
+++ b/src/components/layout/Header.tsx
@@ -56,48 +56,6 @@ export function Header(props: any) {
-
- {
- toggleHidden();
- toggleOpened();
- }}
- />
-
- Modules}
- opened
- onClose={() => {
- toggleHidden();
- }}
- >
- toggleOpened()}
- >
- {(styles) => (
-
-
-
-
-
-
-
-
-
-
-
- )}
-
-
diff --git a/src/components/layout/Layout.tsx b/src/components/layout/Layout.tsx
index a40c6a801..56f51f613 100644
--- a/src/components/layout/Layout.tsx
+++ b/src/components/layout/Layout.tsx
@@ -6,6 +6,7 @@ import Navbar from './Navbar';
import { HeaderConfig } from './HeaderConfig';
import { Background } from './Background';
import { useConfig } from '../../tools/state';
+import { useMediaQuery } from '@mantine/hooks';
const useStyles = createStyles((theme) => ({
main: {},
@@ -19,8 +20,8 @@ export default function Layout({ children, style }: any) {
return (
}
- navbar={widgetPosition ? : <>>}
- aside={widgetPosition ? <>> : }
+ navbar={widgetPosition ? : undefined}
+ aside={widgetPosition ? undefined : }
footer={}
>
diff --git a/src/components/layout/Widgets.tsx b/src/components/layout/Widgets.tsx
index 0eceae4c4..f71b7b06c 100644
--- a/src/components/layout/Widgets.tsx
+++ b/src/components/layout/Widgets.tsx
@@ -5,19 +5,13 @@ import { DashdotModule } from '../modules/dash.';
import { ModuleWrapper } from '../modules/moduleWrapper';
export default function Widgets(props: any) {
- const matches = useMediaQuery('(min-width: 800px)');
-
return (
- <>
- {matches && (
-
-
-
-
-
-
-
- )}
- >
+
+
+
+
+
+
+
);
}