Add "not found" component to UI

This commit is contained in:
Eugen Rochko 2017-01-10 13:50:40 +01:00
parent a1db2a191b
commit 1e9d2c4b1e
5 changed files with 44 additions and 11 deletions

View file

@ -48,7 +48,8 @@ const Status = React.createClass({
dispatch: React.PropTypes.func.isRequired,
status: ImmutablePropTypes.map,
ancestorsIds: ImmutablePropTypes.list,
descendantsIds: ImmutablePropTypes.list
descendantsIds: ImmutablePropTypes.list,
me: React.PropTypes.number
},
mixins: [PureRenderMixin],
@ -81,6 +82,7 @@ const Status = React.createClass({
handleMentionClick (account) {
this.props.dispatch(mentionCompose(account));
if (isMobile(window.innerWidth)) {
this.context.router.push('/statuses/new');
}