Skip to content

Commit

Permalink
refactor: remove unused prop
Browse files Browse the repository at this point in the history
  • Loading branch information
alaca committed Feb 11, 2025
1 parent ed0d1fc commit 3cac0f0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Campaigns/Blocks/shared/components/Pagination/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {__} from '@wordpress/i18n';

import './styles.scss';

export default ({currentPage, totalPages, setPage, disabled = false}: PaginationProps) => {
export default ({currentPage, totalPages, setPage}: PaginationProps) => {
if (1 >= totalPages) {
return null;
}
Expand Down Expand Up @@ -62,6 +62,5 @@ export default ({currentPage, totalPages, setPage, disabled = false}: Pagination
interface PaginationProps {
currentPage: number,
totalPages: number,
setPage: (page: number) => void,
disabled?: boolean
setPage: (page: number) => void
}

0 comments on commit 3cac0f0

Please sign in to comment.