Skip to content

Commit 7cccc4a

Browse files
committedOct 28, 2022
Revert changes in PaginationLimit
1 parent b4e6c19 commit 7cccc4a

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed
 

‎packages/ra-ui-materialui/src/list/pagination/PaginationLimit.tsx

+10-15
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,13 @@ import CardContent from '@mui/material/CardContent';
44
import Typography from '@mui/material/Typography';
55
import { useTranslate } from 'ra-core';
66

7-
export const PaginationLimit = memo(
8-
({ message = 'ra.navigation.no_results' }: PaginationLimitProps) => {
9-
const translate = useTranslate();
10-
11-
return (
12-
<CardContent>
13-
<Typography variant="body2">{translate(message)}</Typography>
14-
</CardContent>
15-
);
16-
}
17-
);
18-
19-
export interface PaginationLimitProps {
20-
message?: string;
21-
}
7+
export const PaginationLimit = memo(() => {
8+
const translate = useTranslate();
9+
return (
10+
<CardContent>
11+
<Typography variant="body2">
12+
{translate('ra.navigation.no_results')}
13+
</Typography>
14+
</CardContent>
15+
);
16+
});

0 commit comments

Comments
 (0)