Switch to compose view when tapping 'mention' in dropdown on mobile
This commit is contained in:
parent
69643338f6
commit
d64c454cfe
6 changed files with 25 additions and 5 deletions
|
@ -23,6 +23,7 @@ import { ScrollContainer } from 'react-router-scroll';
|
|||
import ColumnBackButton from '../../components/column_back_button';
|
||||
import StatusContainer from '../../containers/status_container';
|
||||
import { openMedia } from '../../actions/modal';
|
||||
import { isMobile } from '../../is_mobile'
|
||||
|
||||
const makeMapStateToProps = () => {
|
||||
const getStatus = makeGetStatus();
|
||||
|
@ -80,6 +81,9 @@ const Status = React.createClass({
|
|||
|
||||
handleMentionClick (account) {
|
||||
this.props.dispatch(mentionCompose(account));
|
||||
if (isMobile(window.innerWidth)) {
|
||||
this.context.router.push('/statuses/new');
|
||||
}
|
||||
},
|
||||
|
||||
handleOpenMedia (url) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue