This commit is contained in:
quantulr
2023-11-03 17:25:10 +08:00
parent 2423f8c2e8
commit b6a722fa79
62 changed files with 415 additions and 260 deletions

View File

@ -12,14 +12,14 @@ const Pagination = ({
const pageCount = Math.ceil(total / perPage);
return (
<div
className={"w-full flex justify-center mt-2.5 h-10 items-center text-sm"}
className={"mt-2.5 flex h-10 w-full items-center justify-center text-sm"}
>
{page <= 1 ? (
<div className={"prev mx-3 text-gray-500 cursor-not-allowed"}>
<div className={"prev mx-3 cursor-not-allowed text-gray-500"}>
</div>
) : (
<Link className={"next block mx-3"} href={`./${page - 1}`}>
<Link className={"next mx-3 block"} href={`./${page - 1}`}>
</Link>
)}
@ -39,11 +39,11 @@ const Pagination = ({
),
)}
{page >= pageCount ? (
<div className={"next mx-3 text-gray-500 cursor-not-allowed"}>
<div className={"next mx-3 cursor-not-allowed text-gray-500"}>
</div>
) : (
<Link className={"next block mx-3"} href={`./${page + 1}`}>
<Link className={"next mx-3 block"} href={`./${page + 1}`}>
</Link>
)}