Add "not found" component to UI
This commit is contained in:
parent
a1db2a191b
commit
1e9d2c4b1e
5 changed files with 44 additions and 11 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue