zjj
2 天以前 d7637e7da67eed5c0c924b1200d839b2ba71a788
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>
);