mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-07 07:26:46 +00:00
检查build
This commit is contained in:
@@ -13,7 +13,7 @@ const PaginationSimple = ({ page, totalPage }) => {
|
||||
const currentPage = +page
|
||||
const showNext = currentPage < totalPage
|
||||
const pagePrefix = router.asPath.split('?')[0].replace(/\/page\/[1-9]\d*/, '').replace(/\/$/, '')
|
||||
|
||||
console.log(currentPage, showNext)
|
||||
return (
|
||||
<div className="my-10 mx-6 flex justify-between font-medium text-black dark:text-gray-100 space-x-2">
|
||||
<Link
|
||||
@@ -29,7 +29,7 @@ const PaginationSimple = ({ page, totalPage }) => {
|
||||
<button
|
||||
rel="prev"
|
||||
className={`${
|
||||
currentPage === 1 ? ' bg-gray-300 text-gray-500 pointer-events-none ' : 'block text-white bg-indigo-700'
|
||||
currentPage === 1 ? 'opacity-20 bg-gray-200 text-gray-500 pointer-events-none ' : 'block text-white bg-indigo-700'
|
||||
} duration-200 px-3.5 py-2 hover:border-black rounded-full`} >
|
||||
<i className='fas fa-angle-left text-2xl'/>
|
||||
</button>
|
||||
@@ -44,7 +44,7 @@ const PaginationSimple = ({ page, totalPage }) => {
|
||||
<button
|
||||
rel="next"
|
||||
className={`${
|
||||
+showNext ? 'text-white bg-indigo-700 ' : ' bg-gray-300 text-gray-500 pointer-events-none '
|
||||
+showNext ? 'text-white bg-indigo-700 ' : ' opacity-20 bg-gray-200 text-gray-500 pointer-events-none '
|
||||
} duration-200 px-4 py-2 hover:border-black rounded-full`}
|
||||
>
|
||||
<i className='fas fa-angle-right text-2xl'/>
|
||||
|
||||
Reference in New Issue
Block a user