Skip to content

Commit 764dd0d

Browse files
authored
Merge pull request #8887 from smeng9/master
[typescript] Fix sidebar props
2 parents 172e532 + 28a4b0a commit 764dd0d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import 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';
1110
import { CoreLayoutProps } from 'ra-core';
1211

1312
import { AppBar as DefaultAppBar, AppBarProps } from './AppBar';
14-
import { Sidebar as DefaultSidebar } from './Sidebar';
13+
import { Sidebar as DefaultSidebar, SidebarProps } from './Sidebar';
1514
import { Menu as DefaultMenu, MenuProps } from './Menu';
1615
import { Error, ErrorProps } from './Error';
1716
import { 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

0 commit comments

Comments
 (0)