diff --git a/client/src/components/PaginatedList.jsx b/client/src/components/PaginatedList.jsx index eab9bd6..1e44b09 100644 --- a/client/src/components/PaginatedList.jsx +++ b/client/src/components/PaginatedList.jsx @@ -1,4 +1,4 @@ -import { List, Pagination } from '@mui/material'; +import { List, Pagination, Box } from '@mui/material'; import { NoData } from 'components'; @@ -8,22 +8,27 @@ export default function PaginatedList({ data, handleChangePage, noData = true, - page + page, }) { return ( + {data.length + ? data.map((item) => Component(item)) + : noData && } {count > 1 && ( - + + + )} - { - data.length - ? data.map(item => Component(item)) - : noData && - } ); }