|
@ -2,6 +2,7 @@ import PureRenderMixin from 'react-addons-pure-render-mixin'; |
|
|
import ImmutablePropTypes from 'react-immutable-proptypes'; |
|
|
import ImmutablePropTypes from 'react-immutable-proptypes'; |
|
|
import InnerHeader from '../../account/components/header'; |
|
|
import InnerHeader from '../../account/components/header'; |
|
|
import ActionBar from '../../account/components/action_bar'; |
|
|
import ActionBar from '../../account/components/action_bar'; |
|
|
|
|
|
import MissingIndicator from '../../../components/missing_indicator'; |
|
|
|
|
|
|
|
|
const Header = React.createClass({ |
|
|
const Header = React.createClass({ |
|
|
contextTypes: { |
|
|
contextTypes: { |
|
@ -9,7 +10,7 @@ const Header = React.createClass({ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
propTypes: { |
|
|
propTypes: { |
|
|
account: ImmutablePropTypes.map.isRequired, |
|
|
|
|
|
|
|
|
account: ImmutablePropTypes.map, |
|
|
me: React.PropTypes.number.isRequired, |
|
|
me: React.PropTypes.number.isRequired, |
|
|
onFollow: React.PropTypes.func.isRequired, |
|
|
onFollow: React.PropTypes.func.isRequired, |
|
|
onBlock: React.PropTypes.func.isRequired, |
|
|
onBlock: React.PropTypes.func.isRequired, |
|
@ -39,8 +40,8 @@ const Header = React.createClass({ |
|
|
render () { |
|
|
render () { |
|
|
const { account, me } = this.props; |
|
|
const { account, me } = this.props; |
|
|
|
|
|
|
|
|
if (!account) { |
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
|
if (account === null) { |
|
|
|
|
|
return <MissingIndicator />; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|