From 66b9af36758bae37f33595087d162ee4e20deaea Mon Sep 17 00:00:00 2001 From: Priyanshu Kumar Date: Sun, 26 Jan 2025 12:02:51 +0530 Subject: [PATCH] fix: IconPrevious typo and Improve accessibility and clean up style --- components/icons/Previous.tsx | 2 +- components/pagination/Pagination.tsx | 23 ++++++++++++++++------- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/components/icons/Previous.tsx b/components/icons/Previous.tsx index 4b78a6c4d535..3bf10d5e3b84 100644 --- a/components/icons/Previous.tsx +++ b/components/icons/Previous.tsx @@ -4,7 +4,7 @@ import React from 'react'; /** * @description Icons for Previous button in pagination */ -export default function IconPrevios() { +export default function IconPrevious() { return ( +
+
{getPageNumbers().map((page) => typeof page === 'number' ? ( ) : ( @@ -97,12 +102,16 @@ export default function Pagination({ totalPages, currentPage, onPageChange }: Pa {/* Next button */}
+ ); }