link-stack/apps/metamigo-frontend/components/layout/Layout.tsx
2023-03-15 12:17:43 +00:00

20 lines
487 B
TypeScript

/* eslint-disable import/no-named-as-default */
import { Layout as RaLayout, LayoutProps, Sidebar } from "react-admin";
import AppBar from "./AppBar";
import Menu from "./Menu";
import { theme } from "./themes";
const CustomSidebar = (props: any) => <Sidebar {...props} size={200} />;
const Layout = (props: LayoutProps) => (
<RaLayout
{...props}
appBar={AppBar}
menu={Menu}
sidebar={CustomSidebar}
// @ts-ignore
theme={theme}
/>
);
export default Layout;