logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

display_name.js (592B)


  1. import React from 'react';
  2. import ImmutablePropTypes from 'react-immutable-proptypes';
  3. export default class DisplayName extends React.PureComponent {
  4. static propTypes = {
  5. account: ImmutablePropTypes.map.isRequired,
  6. };
  7. render () {
  8. const displayNameHtml = { __html: this.props.account.get('display_name_html') };
  9. return (
  10. <span className='display-name'>
  11. <bdi><strong className='display-name__html' dangerouslySetInnerHTML={displayNameHtml} /></bdi> <span className='display-name__account'>@{this.props.account.get('acct')}</span>
  12. </span>
  13. );
  14. }
  15. }