Skip to content

Commit 71f4dbe

Browse files
authored
Merge pull request #10559 from smeng9/smeng9-patch
[typescript] Add SxProps to Error component
2 parents 5b04212 + 8641156 commit 71f4dbe

File tree

1 file changed

+3
-0
lines changed
  • packages/ra-ui-materialui/src/layout

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
AccordionDetails,
99
AccordionSummary,
1010
Typography,
11+
SxProps,
1112
} from '@mui/material';
1213
import ErrorIcon from '@mui/icons-material/Report';
1314
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
@@ -24,6 +25,8 @@ import { Title } from './Title';
2425
export const Error = (
2526
props: InternalErrorProps & {
2627
errorComponent?: ComponentType<ErrorProps>;
28+
} & {
29+
sx?: SxProps;
2730
}
2831
) => {
2932
const {

0 commit comments

Comments
 (0)