diff options
author | Nolan Lawson <nolan@nolanlawson.com> | 2017-10-30 19:27:48 -0700 |
---|---|---|
committer | Yamagishi Kazutoshi <ykzts@desire.sh> | 2017-10-31 11:27:48 +0900 |
commit | b254e6ca5f780569e3347deb456b84531b4538ae (patch) | |
tree | e184b583f6113e3306bea1b20e4fd3b100456efd /app/javascript/mastodon/features/account_timeline/components/header.js | |
parent | 29609fbb6a2bdfb8937077fac9f1aa280f730633 (diff) |
Refactor initial state: "me" (#5563)
* Refactor initial state: "me" * remove "me" from reducers/meta.js
Diffstat (limited to 'app/javascript/mastodon/features/account_timeline/components/header.js')
-rw-r--r-- | app/javascript/mastodon/features/account_timeline/components/header.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/javascript/mastodon/features/account_timeline/components/header.js b/app/javascript/mastodon/features/account_timeline/components/header.js index edfedb864..8cf7b92ca 100644 --- a/app/javascript/mastodon/features/account_timeline/components/header.js +++ b/app/javascript/mastodon/features/account_timeline/components/header.js @@ -10,7 +10,6 @@ export default class Header extends ImmutablePureComponent { static propTypes = { account: ImmutablePropTypes.map, - me: PropTypes.string.isRequired, onFollow: PropTypes.func.isRequired, onBlock: PropTypes.func.isRequired, onMention: PropTypes.func.isRequired, @@ -61,7 +60,7 @@ export default class Header extends ImmutablePureComponent { } render () { - const { account, me } = this.props; + const { account } = this.props; if (account === null) { return <MissingIndicator />; @@ -71,13 +70,11 @@ export default class Header extends ImmutablePureComponent { <div className='account-timeline__header'> <InnerHeader account={account} - me={me} onFollow={this.handleFollow} /> <ActionBar account={account} - me={me} onBlock={this.handleBlock} onMention={this.handleMention} onReport={this.handleReport} |