File tree 2 files changed +3
-8
lines changed
packages/ra-ui-materialui/src/layout
2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ AppBar.defaultProps = {
190
190
191
191
export interface AppBarProps extends Omit < MuiAppBarProps , 'title' | 'classes' > {
192
192
classes ?: ClassesOverride < typeof useStyles > ;
193
- logout ?: JSX . Element ;
193
+ logout ?: React . ReactNode ;
194
194
open ?: boolean ;
195
195
title ?: string | JSX . Element ;
196
196
userMenu ?: JSX . Element | boolean ;
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import React, {
6
6
useState ,
7
7
ErrorInfo ,
8
8
ReactElement ,
9
- ReactNode ,
10
9
ComponentType ,
11
10
HtmlHTMLAttributes ,
12
11
} from 'react' ;
@@ -24,7 +23,7 @@ import { ThemeOptions } from '@material-ui/core';
24
23
import { ComponentPropType , CoreLayoutProps } from 'ra-core' ;
25
24
import compose from 'lodash/flowRight' ;
26
25
27
- import DefaultAppBar from './AppBar' ;
26
+ import DefaultAppBar , { AppBarProps } from './AppBar' ;
28
27
import DefaultSidebar from './Sidebar' ;
29
28
import DefaultMenu , { MenuProps } from './Menu' ;
30
29
import DefaultNotification from './Notification' ;
@@ -186,11 +185,7 @@ class LayoutWithoutTheme extends Component<
186
185
export interface LayoutProps
187
186
extends CoreLayoutProps ,
188
187
Omit < HtmlHTMLAttributes < HTMLDivElement > , 'title' > {
189
- appBar ?: ComponentType < {
190
- title ?: string | ReactElement < any > ;
191
- open ?: boolean ;
192
- logout ?: ReactNode ;
193
- } > ;
188
+ appBar ?: ComponentType < AppBarProps > ;
194
189
classes ?: any ;
195
190
className ?: string ;
196
191
error ?: ComponentType < {
You can’t perform that action at this time.
0 commit comments