[Glitch] Fix incorrect proptypes from react-router-v5 update

Port 0ad66175bf to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Claire
2023-10-23 11:39:53 +02:00
parent 9325cb5759
commit 5323f0eeca
2 changed files with 3 additions and 2 deletions

View File

@@ -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,