Skip to content

Commit

Permalink
chore: update imports and prop types
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorrusakov committed Oct 27, 2023
1 parent fb4efe5 commit ba7deae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/Pagination/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ Pagination.propTypes = {
* string, symbol, etc. Default is chevrons rendered using fa-css.
*/
icons: PropTypes.shape({
leftIcon: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),
rightIcon: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),
leftIcon: PropTypes.elementType,
rightIcon: PropTypes.elementType,
}),
variant: PropTypes.oneOf(['default', 'secondary', 'reduced', 'minimal']),
invertColors: PropTypes.bool,
Expand Down Expand Up @@ -147,3 +147,4 @@ Pagination.defaultProps = {
};

export default Pagination;
export * from './constants';
File renamed without changes.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,16 @@ export {
export { default as Navbar, NavbarBrand, NAVBAR_LABEL } from './Navbar';
export { default as Overlay, OverlayTrigger } from './Overlay';
export { default as PageBanner, PAGE_BANNER_DISMISS_ALT_TEXT } from './PageBanner';
export { default as Pagination } from './Pagination';
export {
default as Pagination,
PAGINATION_BUTTON_LABEL_PREV,
PAGINATION_BUTTON_ICON_BUTTON_NEXT_ALT,
PAGINATION_BUTTON_ICON_BUTTON_PREV_ALT,
PAGINATION_BUTTON_LABEL_PAGE_OF_COUNT,
PAGINATION_BUTTON_LABEL_CURRENT_PAGE,
PAGINATION_BUTTON_LABEL_NEXT,
PAGINATION_BUTTON_LABEL_PAGE,
} from './Pagination/constants';
} from './Pagination';
export { default as Popover, PopoverTitle, PopoverContent } from './Popover';
export { default as ProgressBar } from './ProgressBar';
export { default as ProductTour } from './ProductTour';
Expand Down

0 comments on commit ba7deae

Please sign in to comment.