generated from layer5io/layer5-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #898 from amitamrutiya/add-pagination
add pagination item component to sistent
- Loading branch information
Showing
3 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
import { Pagination as MuiPagination, PaginationProps as MuiPaginationProps } from '@mui/material'; | ||
import { | ||
Pagination as MuiPagination, | ||
PaginationItem as MuiPaginationItem, | ||
PaginationProps as MuiPaginationProps | ||
} from '@mui/material'; | ||
import React from 'react'; | ||
|
||
const Pagination = React.forwardRef<HTMLDivElement, MuiPaginationProps>((props, ref) => { | ||
return <MuiPagination {...props} ref={ref} />; | ||
}); | ||
|
||
export { MuiPaginationItem as PaginationItem }; | ||
export default Pagination; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { PaginationProps } from '@mui/material'; | ||
import Pagination from './Pagination'; | ||
import Pagination, { PaginationItem } from './Pagination'; | ||
|
||
export { Pagination }; | ||
export { Pagination, PaginationItem }; | ||
export type { PaginationProps }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters