Skip to content

Commit

Permalink
Change Layout interface to use AppBarProps interface
Browse files Browse the repository at this point in the history
Fixes #6019
  • Loading branch information
yasharzolmajdi committed Mar 14, 2021
1 parent 2ee2a98 commit 077c2e8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/ra-ui-materialui/src/layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { ThemeOptions } from '@material-ui/core';
import { ComponentPropType, CoreLayoutProps } from 'ra-core';
import compose from 'lodash/flowRight';

import DefaultAppBar from './AppBar';
import DefaultAppBar, { AppBarProps } from './AppBar';
import DefaultSidebar from './Sidebar';
import DefaultMenu, { MenuProps } from './Menu';
import DefaultNotification from './Notification';
Expand Down Expand Up @@ -186,11 +186,7 @@ class LayoutWithoutTheme extends Component<
export interface LayoutProps
extends CoreLayoutProps,
Omit<HtmlHTMLAttributes<HTMLDivElement>, 'title'> {
appBar?: ComponentType<{
title?: string | ReactElement<any>;
open?: boolean;
logout?: ReactNode;
}>;
appBar?: ComponentType<AppBarProps>;
classes?: any;
className?: string;
error?: ComponentType<{
Expand Down

0 comments on commit 077c2e8

Please sign in to comment.