You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1001 B

  1. import PureRenderMixin from 'react-addons-pure-render-mixin';
  2. import ImmutablePropTypes from 'react-immutable-proptypes';
  3. import Avatar from './avatar';
  4. import IconButton from './icon_button';
  5. import DisplayName from './display_name';
  6. import { Link } from 'react-router';
  7. const NavigationBar = React.createClass({
  8. propTypes: {
  9. account: ImmutablePropTypes.map.isRequired
  10. },
  11. mixins: [PureRenderMixin],
  12. render () {
  13. return (
  14. <div style={{ padding: '10px', display: 'flex', cursor: 'default' }}>
  15. <Avatar src={this.props.account.get('avatar')} size={40} />
  16. <div style={{ flex: '1 1 auto', marginLeft: '8px' }}>
  17. <strong style={{ fontWeight: '500', display: 'block' }}>{this.props.account.get('acct')}</strong>
  18. <Link to='/settings' style={{ color: '#9baec8', textDecoration: 'none' }}>Settings <i className='fa fa fa-cog' /></Link>
  19. </div>
  20. </div>
  21. );
  22. }
  23. });
  24. export default NavigationBar;