diff --git a/app/soapbox/components/modal_root.js b/app/soapbox/components/modal_root.js index 99b6b1c0e..599d090f6 100644 --- a/app/soapbox/components/modal_root.js +++ b/app/soapbox/components/modal_root.js @@ -54,6 +54,10 @@ class ModalRoot extends React.PureComponent { onCancel: PropTypes.func, }; + static contextTypes = { + router: PropTypes.object, + }; + state = { revealed: !!this.props.children, }; diff --git a/app/soapbox/features/scheduled_statuses/components/scheduled_status.js b/app/soapbox/features/scheduled_statuses/components/scheduled_status.js index c79de8af1..7daf0a024 100644 --- a/app/soapbox/features/scheduled_statuses/components/scheduled_status.js +++ b/app/soapbox/features/scheduled_statuses/components/scheduled_status.js @@ -39,7 +39,7 @@ class ScheduledStatus extends ImmutablePureComponent {