[Glitch] Upgrades to React 19.2

Port ccd6fb92f9 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Echo authored and Claire committed 2026-06-17 14:46:18 +02:00
1 parent 1e7fec004d
commit cc2aec8b0a
2 files changed
+22 -16

No files matched your search

@@ -18,7 +18,7 @@ export const WithOptionalRouterPropTypes = {
export interface OptionalRouterProps {
ref: unknown;
wrappedComponentRef: unknown;
wrappedComponentRef?: string | ((...args: unknown[]) => unknown) | object;
}
// This is copied from https://github.com/remix-run/react-router/blob/v5.3.4/packages/react-router/modules/withRouter.js
@@ -54,14 +54,6 @@ export function withOptionalRouter<
C.displayName = displayName;
C.WrappedComponent = Component;
C.propTypes = {
...Component.propTypes,
wrappedComponentRef: PropTypes.oneOfType([
PropTypes.string,
PropTypes.func,
PropTypes.object,
]),
};
return hoistStatics(C, Component);
}