Skip to content

Commit

Permalink
Merge pull request #898 from amitamrutiya/add-pagination
Browse files Browse the repository at this point in the history
add pagination item component to sistent
  • Loading branch information
amitamrutiya authored Jan 24, 2025
2 parents 85e9442 + fbfc638 commit 2d498cf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion src/base/Pagination/Pagination.tsx
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;
4 changes: 2 additions & 2 deletions src/base/Pagination/index.tsx
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 };
2 changes: 1 addition & 1 deletion src/theme/palette.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ export const darkModePalette: PaletteOptions = {
tertiary: Colors.blue[10]
},
success: {
default: Colors.green[40],
default: Colors.KEPPEL,
hover: Colors.green[50],
pressed: Colors.green[60],
secondary: Colors.green[20],
Expand Down

0 comments on commit 2d498cf

Please sign in to comment.