Skip to content

Commit

Permalink
Revert changes in PaginationLimit
Browse files Browse the repository at this point in the history
  • Loading branch information
WiXSL committed Oct 28, 2022
1 parent b4e6c19 commit 7cccc4a
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions packages/ra-ui-materialui/src/list/pagination/PaginationLimit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,13 @@ import CardContent from '@mui/material/CardContent';
import Typography from '@mui/material/Typography';
import { useTranslate } from 'ra-core';

export const PaginationLimit = memo(
({ message = 'ra.navigation.no_results' }: PaginationLimitProps) => {
const translate = useTranslate();

return (
<CardContent>
<Typography variant="body2">{translate(message)}</Typography>
</CardContent>
);
}
);

export interface PaginationLimitProps {
message?: string;
}
export const PaginationLimit = memo(() => {
const translate = useTranslate();
return (
<CardContent>
<Typography variant="body2">
{translate('ra.navigation.no_results')}
</Typography>
</CardContent>
);
});

0 comments on commit 7cccc4a

Please sign in to comment.