mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-23 09:58:07 +01:00
[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:
parent
9325cb5759
commit
5323f0eeca
2 changed files with 3 additions and 2 deletions
|
@ -14,7 +14,7 @@ import PollContainer from 'flavours/glitch/containers/poll_container';
|
|||
import NotificationOverlayContainer from 'flavours/glitch/features/notifications/containers/overlay_container';
|
||||
import { displayMedia } from 'flavours/glitch/initial_state';
|
||||
import { autoUnfoldCW } from 'flavours/glitch/utils/content_warning';
|
||||
import { withOptionalRouter, WithRouterPropTypes } from 'flavours/glitch/utils/react_router';
|
||||
import { withOptionalRouter, WithOptionalRouterPropTypes } from 'flavours/glitch/utils/react_router';
|
||||
|
||||
import Card from '../features/status/components/card';
|
||||
import Bundle from '../features/ui/components/bundle';
|
||||
|
@ -114,7 +114,7 @@ class Status extends ImmutablePureComponent {
|
|||
inUse: PropTypes.bool,
|
||||
available: PropTypes.bool,
|
||||
}),
|
||||
...WithRouterPropTypes,
|
||||
...WithOptionalRouterPropTypes,
|
||||
};
|
||||
|
||||
state = {
|
||||
|
|
|
@ -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…
Reference in a new issue