refactor: QPagination component to modify handleChangePage default value

This commit is contained in:
yoosangwook 2024-10-17 09:58:06 +09:00
parent aab9084f1b
commit e7d988bba6

View File

@ -1,7 +1,7 @@
import usePagination from '@/hooks/usePagination' import usePagination from '@/hooks/usePagination'
export default function QPagination(props) { export default function QPagination(props) {
const { handleChangePage, pagePerBlock = 10 } = props const { handleChangePage = () => {}, pagePerBlock = 10 } = props
const { currentPage, changePage, pageGroup, totalPages, pages, startPage, endPage, pageRange } = usePagination(props) const { currentPage, changePage, pageGroup, totalPages, pages, startPage, endPage, pageRange } = usePagination(props)
const handlePage = (page) => { const handlePage = (page) => {