-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLayout.tsx
32 lines (31 loc) · 835 Bytes
/
Layout.tsx
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
import {
ContainerLayout,
ContainerLayoutClasses,
} from "@react-admin/ra-navigation";
import type { ReactNode } from "react";
import { CheckForApplicationUpdate } from "react-admin";
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
import { AppBar } from "./AppBar";
export const Layout = ({ children }: { children: ReactNode }) => (
<ContainerLayout
appBar={<AppBar />}
sx={{
[`&`]: {
bgcolor: "transparent",
display: "flex",
flexDirection: "column",
},
[`& .${ContainerLayoutClasses.content}`]: {
maxWidth: "unset",
bgcolor: "transparent",
flexGrow: 1,
display: "flex",
flexDirection: "column",
},
}}
>
{children}
<CheckForApplicationUpdate />
<ReactQueryDevtools />
</ContainerLayout>
);