Make profile header scroll along with contents. AccountTimeline, Followers and Following are no longer
nested inside a common parent (<Account>), instead they all embed <HeaderContainer />
This commit is contained in:
@ -14,6 +14,10 @@ const messages = defineMessages({
|
||||
|
||||
const ActionBar = React.createClass({
|
||||
|
||||
contextTypes: {
|
||||
router: React.PropTypes.object
|
||||
},
|
||||
|
||||
propTypes: {
|
||||
status: ImmutablePropTypes.map.isRequired,
|
||||
onReply: React.PropTypes.func.isRequired,
|
||||
@ -43,7 +47,7 @@ const ActionBar = React.createClass({
|
||||
},
|
||||
|
||||
handleMentionClick () {
|
||||
this.props.onMention(this.props.status.get('account'));
|
||||
this.props.onMention(this.props.status.get('account'), this.context.router);
|
||||
},
|
||||
|
||||
render () {
|
||||
|
@ -80,12 +80,8 @@ const Status = React.createClass({
|
||||
this.props.dispatch(deleteStatus(status.get('id')));
|
||||
},
|
||||
|
||||
handleMentionClick (account) {
|
||||
this.props.dispatch(mentionCompose(account));
|
||||
|
||||
if (isMobile(window.innerWidth)) {
|
||||
this.context.router.push('/statuses/new');
|
||||
}
|
||||
handleMentionClick (account, router) {
|
||||
this.props.dispatch(mentionCompose(account, router));
|
||||
},
|
||||
|
||||
handleOpenMedia (url) {
|
||||
|
Reference in New Issue
Block a user