status.tsx: extend withRouter props
This commit is contained in:
parent
c74d154874
commit
a080ed8647
1 changed files with 2 additions and 3 deletions
|
@ -3,7 +3,7 @@ import React from 'react';
|
||||||
import { HotKeys } from 'react-hotkeys';
|
import { HotKeys } from 'react-hotkeys';
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component';
|
import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||||
import { injectIntl, FormattedMessage, IntlShape } from 'react-intl';
|
import { injectIntl, FormattedMessage, IntlShape } from 'react-intl';
|
||||||
import { NavLink, withRouter } from 'react-router-dom';
|
import { NavLink, withRouter, RouteComponentProps } from 'react-router-dom';
|
||||||
|
|
||||||
import Icon from 'soapbox/components/icon';
|
import Icon from 'soapbox/components/icon';
|
||||||
import PlaceholderCard from 'soapbox/features/placeholder/components/placeholder_card';
|
import PlaceholderCard from 'soapbox/features/placeholder/components/placeholder_card';
|
||||||
|
@ -61,7 +61,7 @@ export const defaultMediaVisibility = (status: StatusEntity, displayMedia: strin
|
||||||
return (displayMedia !== 'hide_all' && !status.sensitive || displayMedia === 'show_all');
|
return (displayMedia !== 'hide_all' && !status.sensitive || displayMedia === 'show_all');
|
||||||
};
|
};
|
||||||
|
|
||||||
interface IStatus {
|
interface IStatus extends RouteComponentProps {
|
||||||
intl: IntlShape,
|
intl: IntlShape,
|
||||||
status: StatusEntity,
|
status: StatusEntity,
|
||||||
account: AccountEntity,
|
account: AccountEntity,
|
||||||
|
@ -674,5 +674,4 @@ class Status extends ImmutablePureComponent<IStatus, IStatusState> {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// @ts-ignore WHY
|
|
||||||
export default withRouter(injectIntl(Status));
|
export default withRouter(injectIntl(Status));
|
||||||
|
|
Loading…
Reference in a new issue