File tree Expand file tree Collapse file tree
packages/ra-ui-materialui/src/layout Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React , {
22 useState ,
33 ErrorInfo ,
4- ReactNode ,
54 ComponentType ,
65 HtmlHTMLAttributes ,
76} from 'react' ;
@@ -11,7 +10,7 @@ import { styled, SxProps } from '@mui/material/styles';
1110import { CoreLayoutProps } from 'ra-core' ;
1211
1312import { AppBar as DefaultAppBar , AppBarProps } from './AppBar' ;
14- import { Sidebar as DefaultSidebar } from './Sidebar' ;
13+ import { Sidebar as DefaultSidebar , SidebarProps } from './Sidebar' ;
1514import { Menu as DefaultMenu , MenuProps } from './Menu' ;
1615import { Error , ErrorProps } from './Error' ;
1716import { SkipNavigationButton } from '../button' ;
@@ -79,7 +78,7 @@ export interface LayoutProps
7978 className ?: string ;
8079 error ?: ComponentType < ErrorProps > ;
8180 menu ?: ComponentType < MenuProps > ;
82- sidebar ?: ComponentType < { children : ReactNode } > ;
81+ sidebar ?: ComponentType < SidebarProps > ;
8382 sx ?: SxProps ;
8483}
8584
You can’t perform that action at this time.
0 commit comments