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.
38 lines
1.4 KiB
38 lines
1.4 KiB
8 years ago
|
import React from 'react';
|
||
8 years ago
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
||
8 years ago
|
import Avatar from '../../../components/avatar';
|
||
8 years ago
|
import IconButton from '../../../components/icon_button';
|
||
|
import DisplayName from '../../../components/display_name';
|
||
8 years ago
|
import Permalink from '../../../components/permalink';
|
||
8 years ago
|
import { FormattedMessage } from 'react-intl';
|
||
8 years ago
|
import { Link } from 'react-router';
|
||
8 years ago
|
import ImmutablePureComponent from 'react-immutable-pure-component';
|
||
8 years ago
|
|
||
8 years ago
|
class NavigationBar extends ImmutablePureComponent {
|
||
8 years ago
|
|
||
|
render () {
|
||
|
return (
|
||
8 years ago
|
<div className='navigation-bar'>
|
||
8 years ago
|
<Permalink href={this.props.account.get('url')} to={`/accounts/${this.props.account.get('id')}`}>
|
||
|
<Avatar src={this.props.account.get('avatar')} animate size={40} />
|
||
|
</Permalink>
|
||
8 years ago
|
|
||
8 years ago
|
<div className='navigation-bar__profile'>
|
||
8 years ago
|
<Permalink href={this.props.account.get('url')} to={`/accounts/${this.props.account.get('id')}`}>
|
||
|
<strong className='navigation-bar__profile-account'>@{this.props.account.get('acct')}</strong>
|
||
|
</Permalink>
|
||
8 years ago
|
|
||
8 years ago
|
<a href='/settings/profile' className='navigation-bar__profile-edit'><FormattedMessage id='navigation_bar.edit_profile' defaultMessage='Edit profile' /></a>
|
||
8 years ago
|
</div>
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
|
||
8 years ago
|
}
|
||
|
|
||
|
NavigationBar.propTypes = {
|
||
|
account: ImmutablePropTypes.map.isRequired
|
||
|
};
|
||
8 years ago
|
|
||
|
export default NavigationBar;
|