link-stack/apps/metamigo-frontend/components/layout/Layout.tsx

21 lines
487 B
TypeScript
Raw Normal View History

2023-03-15 12:17:43 +00:00
/* eslint-disable import/no-named-as-default */
2023-02-13 12:41:30 +00:00
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} />;
2023-03-15 12:17:43 +00:00
const Layout = (props: LayoutProps) => (
<RaLayout
{...props}
appBar={AppBar}
menu={Menu}
sidebar={CustomSidebar}
// @ts-ignore
theme={theme}
/>
);
2023-02-13 12:41:30 +00:00
export default Layout;