feature: 分页简化showNext

This commit is contained in:
tangly1024
2022-01-06 17:40:03 +08:00
parent b67fddeec3
commit 7deaabc1c4
2 changed files with 3 additions and 7 deletions

View File

@@ -11,9 +11,10 @@ import { faAngleLeft, faAngleRight } from '@fortawesome/free-solid-svg-icons'
* @returns {JSX.Element}
* @constructor
*/
const PaginationNumber = ({ page, showNext, totalPage }) => {
const PaginationNumber = ({ page, totalPage }) => {
const router = useRouter()
const currentPage = +page
const showNext = page !== totalPage
const pages = generatePages(page, currentPage, totalPage)
return (