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 authored and marcod1419 committed Mar 25, 2020
1 parent 2de1d13 commit d79fbd9
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 @@ -160,7 +160,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. This will be passed down from the parent
* `<Breadcrumbs>` if the parent has a `reactRouterLinkComponent` provided.
*/
reactRouterLinkComponent: PropTypes.func,
reactRouterLinkComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
/**
* Breadcrumb text
*/
Expand Down

0 comments on commit d79fbd9

Please sign in to comment.