Skip to content

Commit

Permalink
Merge pull request #263 from matsilva/add-pager-show-on-single-page
Browse files Browse the repository at this point in the history
feat: add show on single page prop to Pager
  • Loading branch information
amcdnl authored Oct 24, 2024
2 parents 9d528d4 + fa9456b commit c27aff7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/data/Pager/Pager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,6 @@ export const Pager: FC<PagerProps> = ({
}
}, [canNext, page, onPageChange, pageCount]);

if (pageCount === 1) {
return null;
}

return (
<div className={twMerge(theme.base, className)}>
{(displayMode === 'items' || displayMode === 'all') && (
Expand Down

0 comments on commit c27aff7

Please sign in to comment.