|
|
@ -20,6 +20,7 @@ import LoadingIndicator from '../../components/loading_indicator';
|
|
|
|
import ActionBar from './components/action_bar';
|
|
|
|
import ActionBar from './components/action_bar';
|
|
|
|
import Column from '../ui/components/column';
|
|
|
|
import Column from '../ui/components/column';
|
|
|
|
import ColumnBackButton from '../../components/column_back_button';
|
|
|
|
import ColumnBackButton from '../../components/column_back_button';
|
|
|
|
|
|
|
|
import { isMobile } from '../../is_mobile'
|
|
|
|
|
|
|
|
|
|
|
|
const makeMapStateToProps = () => {
|
|
|
|
const makeMapStateToProps = () => {
|
|
|
|
const getAccount = makeGetAccount();
|
|
|
|
const getAccount = makeGetAccount();
|
|
|
@ -34,6 +35,10 @@ const makeMapStateToProps = () => {
|
|
|
|
|
|
|
|
|
|
|
|
const Account = React.createClass({
|
|
|
|
const Account = React.createClass({
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
contextTypes: {
|
|
|
|
|
|
|
|
router: React.PropTypes.object
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
propTypes: {
|
|
|
|
propTypes: {
|
|
|
|
params: React.PropTypes.object.isRequired,
|
|
|
|
params: React.PropTypes.object.isRequired,
|
|
|
|
dispatch: React.PropTypes.func.isRequired,
|
|
|
|
dispatch: React.PropTypes.func.isRequired,
|
|
|
@ -71,6 +76,9 @@ const Account = React.createClass({
|
|
|
|
|
|
|
|
|
|
|
|
handleMention () {
|
|
|
|
handleMention () {
|
|
|
|
this.props.dispatch(mentionCompose(this.props.account));
|
|
|
|
this.props.dispatch(mentionCompose(this.props.account));
|
|
|
|
|
|
|
|
if (isMobile(window.innerWidth)) {
|
|
|
|
|
|
|
|
this.context.router.push('/statuses/new');
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
render () {
|
|
|
|
render () {
|
|
|
|