Fix incorrect proptypes from react-router-v5 update (#27507)
This commit is contained in:
parent
70fd819935
commit
0ad66175bf
2 changed files with 3 additions and 2 deletions
|
@ -49,6 +49,7 @@ export function withOptionalRouter(Component) {
|
|||
C.displayName = displayName;
|
||||
C.WrappedComponent = Component;
|
||||
C.propTypes = {
|
||||
...Component.propTypes,
|
||||
wrappedComponentRef: PropTypes.oneOfType([
|
||||
PropTypes.string,
|
||||
PropTypes.func,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue