From 3cac0f07cf25a6ac64d42a47ae65724629dc057e Mon Sep 17 00:00:00 2001 From: alaca Date: Tue, 11 Feb 2025 11:33:46 +0100 Subject: [PATCH] refactor: remove unused prop --- src/Campaigns/Blocks/shared/components/Pagination/index.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Campaigns/Blocks/shared/components/Pagination/index.tsx b/src/Campaigns/Blocks/shared/components/Pagination/index.tsx index 00ad4f8d3b..7572ddb0b0 100644 --- a/src/Campaigns/Blocks/shared/components/Pagination/index.tsx +++ b/src/Campaigns/Blocks/shared/components/Pagination/index.tsx @@ -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; } @@ -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 }