Skip to content

Commit

Permalink
Fix withOptionalRouter propTypes issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire committed Oct 21, 2023
1 parent d6eacb7 commit 6d5bc46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/javascript/flavours/glitch/utils/react_router.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6d5bc46

Please sign in to comment.