Skip to content

Commit

Permalink
chore: update dependency for MUI pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
RRanath committed Aug 13, 2024
1 parent 98042d0 commit 0ff39b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/components/Table/Pagination.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { TablePagination } from '@mui/base/TablePagination';
import { Dropdown, Button } from '@button-inc/bcgov-theme';
import styled from 'styled-components';
import TablePagination from '@mui/material/TablePagination';

interface Props {
/**
Expand Down Expand Up @@ -97,14 +97,15 @@ const FilterableTablePagination: React.FunctionComponent<Props> = ({
className={disabled ? 'disabled' : ''}
>
<TablePagination
component="div"
count={totalCount}
page={activePage}
rowsPerPage={pageSize}
rowsPerPageOptions={PAGE_SIZE_OPTIONS}
onPageChange={handlePageChange}
onRowsPerPageChange={handlePageSizeChange}
labelRowsPerPage="Items per page:"
slots={paginationComponents}
slots={paginationComponents as any}
slotProps={paginationComponentsProps as any}
/>
</td>
Expand Down

0 comments on commit 0ff39b0

Please sign in to comment.