Skip to content

Commit 1f5463c

Browse files
committed
Improve error component example
1 parent 1968f33 commit 1f5463c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

docs/Layout.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,9 @@ Here is an example of a custom error component:
166166
import Button from '@mui/material/Button';
167167
import ErrorIcon from '@mui/icons-material/Report';
168168
import History from '@mui/icons-material/History';
169-
import { Title, useTranslate, useDefaultTitle, useResetErrorBoundaryOnLocationChange } from 'react-admin';
169+
import { Title, useTranslate, useDefaultTitle } from 'react-admin';
170170

171-
export const MyError = ({
172-
error,
173-
...rest
174-
}) => {
171+
export const MyError = ({ error, ...rest }) => {
175172
const translate = useTranslate();
176173
const defaultTitle = useDefaultTitle();
177174
return (

0 commit comments

Comments
 (0)