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
1.3 KiB

  1. import PureRenderMixin from 'react-addons-pure-render-mixin';
  2. import ImmutablePropTypes from 'react-immutable-proptypes';
  3. import Avatar from '../../../components/avatar';
  4. import IconButton from '../../../components/icon_button';
  5. import DisplayName from '../../../components/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. <Link to={`/accounts/${this.props.account.get('id')}`} style={{ textDecoration: 'none' }}><Avatar src={this.props.account.get('avatar')} size={40} /></Link>
  16. <div style={{ flex: '1 1 auto', marginLeft: '8px', color: '#9baec8' }}>
  17. <strong style={{ fontWeight: '500', display: 'block', color: '#fff' }}>{this.props.account.get('acct')}</strong>
  18. <a href='/settings/profile' style={{ color: 'inherit', textDecoration: 'none' }}>Settings</a> · <Link to='/timelines/public' style={{ color: 'inherit', textDecoration: 'none' }}>Public timeline</Link> · <a href='/auth/sign_out' data-method='delete' style={{ color: 'inherit', textDecoration: 'none' }}>Logout</a>
  19. </div>
  20. </div>
  21. );
  22. }
  23. });
  24. export default NavigationBar;