Skip to content

Commit

Permalink
fix(core-breadcrumbs): prop type warnings for reactRouterLinkComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
jraff committed Mar 23, 2020
1 parent 1501f98 commit 110c121
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/Breadcrumbs/Breadcrumbs.jsx
Expand Up @@ -153,7 +153,7 @@ Breadcrumbs.propTypes = {
/**
* React Router Link component.
*/
reactRouterLinkComponent: PropTypes.func,
reactRouterLinkComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
/**
* React Router params.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/Breadcrumbs/Item/Item.jsx
Expand Up @@ -74,7 +74,7 @@ Item.propTypes = {
*
* React Router Link component. The reactRouterLinkComponent property will be passed down from from the parent `<Breadcrumbs>`.
*/
reactRouterLinkComponent: PropTypes.func,
reactRouterLinkComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
/**
* Breadcrumb text
*/
Expand Down

0 comments on commit 110c121

Please sign in to comment.