Source code for the custom Mastodon (Glitchsoc) instance on berserker.town.
https://berserker.town/
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.
22 lines
637 B
22 lines
637 B
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
|
|
const DisplayName = React.createClass({
|
|
propTypes: {
|
|
account: ImmutablePropTypes.map.isRequired
|
|
},
|
|
|
|
render () {
|
|
var displayName = this.props.account.get('display_name', this.props.account.get('username'));
|
|
var acct = this.props.account.get('acct');
|
|
var url = this.props.account.get('url');
|
|
|
|
return (
|
|
<a href={url} style={{ color: '#616b86', textDecoration: 'none' }}>
|
|
<strong style={{ fontWeight: 'bold', color: '#fff' }}>{displayName}</strong> <span>{acct}</span>
|
|
</a>
|
|
);
|
|
}
|
|
|
|
});
|
|
|
|
export default DisplayName;
|
|
|