update
This commit is contained in:
@ -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>
|
||||
)}
|
||||
|
Reference in New Issue
Block a user