Skip to content

Commit 99cbafd

Browse files
authored
Fix sidebar props
1 parent 87da0a9 commit 99cbafd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/ra-ui-materialui/src/layout/Layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { styled, SxProps } from '@mui/material/styles';
1111
import { CoreLayoutProps } from 'ra-core';
1212

1313
import { AppBar as DefaultAppBar, AppBarProps } from './AppBar';
14-
import { Sidebar as DefaultSidebar } from './Sidebar';
14+
import { Sidebar as DefaultSidebar, SidebarProps } from './Sidebar';
1515
import { Menu as DefaultMenu, MenuProps } from './Menu';
1616
import { Error, ErrorProps } from './Error';
1717
import { SkipNavigationButton } from '../button';
@@ -79,7 +79,7 @@ export interface LayoutProps
7979
className?: string;
8080
error?: ComponentType<ErrorProps>;
8181
menu?: ComponentType<MenuProps>;
82-
sidebar?: ComponentType<{ children: ReactNode }>;
82+
sidebar?: ComponentType<SidebarProps>;
8383
sx?: SxProps;
8484
}
8585

0 commit comments

Comments
 (0)