change format all file
This commit is contained in:
@@ -2,7 +2,8 @@ import { Pagination as PaginationMUI } from "@mui/material";
|
||||
|
||||
function Pagination({ page, setPage, list, itemsPerPage }) {
|
||||
const handleChange = (_, value) => setPage(value);
|
||||
const count = list && itemsPerPage ? Math.ceil(list.length / itemsPerPage) : 20;
|
||||
const count =
|
||||
list && itemsPerPage ? Math.ceil(list.length / itemsPerPage) : 20;
|
||||
|
||||
return (
|
||||
<PaginationMUI
|
||||
@@ -10,7 +11,7 @@ function Pagination({ page, setPage, list, itemsPerPage }) {
|
||||
page={page || 1}
|
||||
onChange={setPage && handleChange}
|
||||
color="primary"
|
||||
className={count < 2 && '!hidden'}
|
||||
className={count < 2 && "!hidden"}
|
||||
sx={{
|
||||
"& .mui-8q7g72-MuiButtonBase-root-MuiPaginationItem-root": {
|
||||
color: "#616161",
|
||||
@@ -18,9 +19,9 @@ function Pagination({ page, setPage, list, itemsPerPage }) {
|
||||
fontWeight: "500",
|
||||
},
|
||||
"& .mui-8q7g72-MuiButtonBase-root-MuiPaginationItem-root.Mui-selected":
|
||||
{
|
||||
color: "#F8F8FF",
|
||||
},
|
||||
{
|
||||
color: "#F8F8FF",
|
||||
},
|
||||
"& .MuiSvgIcon-root": {
|
||||
rotate: "180deg !important",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user