Skip to content

Commit cc20ca7

Browse files
authored
Merge pull request #8209 from marmelab/fix-layout-props-sx
Fix Layout props type
2 parents 4eebf3c + 28bbfe4 commit cc20ca7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import React, {
77
} from 'react';
88
import { ErrorBoundary } from 'react-error-boundary';
99
import clsx from 'clsx';
10-
import { styled } from '@mui/material/styles';
10+
import { styled, SxProps } from '@mui/material/styles';
1111
import { CoreLayoutProps } from 'ra-core';
1212

1313
import { AppBar as DefaultAppBar, AppBarProps } from './AppBar';
@@ -76,6 +76,7 @@ export interface LayoutProps
7676
error?: ComponentType<ErrorProps>;
7777
menu?: ComponentType<MenuProps>;
7878
sidebar?: ComponentType<{ children: ReactNode }>;
79+
sx?: SxProps;
7980
}
8081

8182
export interface LayoutState {

0 commit comments

Comments
 (0)