Skip to content

Commit d7cb946

Browse files
committed
chore: fix tests
1 parent 419cded commit d7cb946

File tree

2 files changed

+1180
-1222
lines changed

2 files changed

+1180
-1222
lines changed

src/Pager/Pager.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ export const Pager: FC<PagerProps> = ({
3434
const listClasses = classNames(listClassName, 'pagination');
3535
const { ariaLabel, label } = total || {};
3636
const totalAriaLabel = ariaLabel ? <span className='visually-hidden'>{ariaLabel}</span> : null;
37-
const listChildren = React.Children.toArray(children).filter(child => child.type.name === 'PaginationItem');
38-
const extraChildren = React.Children.toArray(children).filter(child => child.type.name !== 'PaginationItem');
37+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
38+
const listChildren = React.Children.toArray(children).filter((child: any) => child.type.name === 'PaginationItem');
39+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
40+
const extraChildren = React.Children.toArray(children).filter((child: any)=> child.type.name !== 'PaginationItem');
3941

4042
// listChildren?.forEach(child => {
4143
// console.log(child)

0 commit comments

Comments
 (0)