From ba7deaeea5e8a7b1fd6faa11af09deb2c2338a97 Mon Sep 17 00:00:00 2001 From: Viktor Rusakov Date: Fri, 27 Oct 2023 09:11:16 +0300 Subject: [PATCH] chore: update imports and prop types --- src/Pagination/index.jsx | 5 +++-- src/Pagination/subcomponents/{index.jsx => index.js} | 0 src/index.js | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) rename src/Pagination/subcomponents/{index.jsx => index.js} (100%) diff --git a/src/Pagination/index.jsx b/src/Pagination/index.jsx index 415bd12507..085f6247b5 100644 --- a/src/Pagination/index.jsx +++ b/src/Pagination/index.jsx @@ -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, @@ -147,3 +147,4 @@ Pagination.defaultProps = { }; export default Pagination; +export * from './constants'; diff --git a/src/Pagination/subcomponents/index.jsx b/src/Pagination/subcomponents/index.js similarity index 100% rename from src/Pagination/subcomponents/index.jsx rename to src/Pagination/subcomponents/index.js diff --git a/src/index.js b/src/index.js index 885499e158..a25410d8f9 100644 --- a/src/index.js +++ b/src/index.js @@ -97,8 +97,8 @@ 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, @@ -106,7 +106,7 @@ export { 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';