From 18b8a55049b1a33949b828b929cff93505ad1677 Mon Sep 17 00:00:00 2001 From: Priyanshu Kumar Date: Thu, 6 Feb 2025 01:28:13 +0530 Subject: [PATCH] fix pagination: mobile view --- components/buttons/Button.tsx | 2 +- components/pagination/Pagination.tsx | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/components/buttons/Button.tsx b/components/buttons/Button.tsx index e19093238ebc..261f992f4a4f 100644 --- a/components/buttons/Button.tsx +++ b/components/buttons/Button.tsx @@ -8,7 +8,7 @@ type IButtonProps = { // eslint-disable-next-line prettier/prettier /** The text to be displayed on the button. */ - text: string; + text: string | React.ReactNode; /** The type of the button. Defaults to 'button'. */ type?: ButtonType; diff --git a/components/pagination/Pagination.tsx b/components/pagination/Pagination.tsx index 03d2416b3d2b..99c1a80c9624 100644 --- a/components/pagination/Pagination.tsx +++ b/components/pagination/Pagination.tsx @@ -51,17 +51,17 @@ export default function Pagination({ totalPages, currentPage, onPageChange }: Pa pages.push(i); } - if (currentPage < totalPages - 2) { - pages.push('ellipsis2'); - } - pages.push(totalPages); return pages; }; return ( -