skyouc
2025-04-22 de010011aa92785f04b6f0345411c584d49a92d4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { Layout as RALayout, CheckForApplicationUpdate } from "react-admin";
import AppBar from './AppBar';
import { MyMenu } from './MyMenu'
 
export const Layout = ({ children }) => (
  <RALayout
    appBar={AppBar}
    menu={MyMenu}
    sx={{ '& .RaLayout-content': { position: 'absolute', left: '200px', overflowY: 'auto', width: 'calc(100% - 200px)', height: 'calc(100% - 50px)' } }}
  >
    {children}
    <CheckForApplicationUpdate />
  </RALayout>
);