The code powering m.abunchtell.com https://m.abunchtell.com
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

23 lignes
746 B

  1. import ImmutablePropTypes from 'react-immutable-proptypes';
  2. const DisplayName = React.createClass({
  3. propTypes: {
  4. account: ImmutablePropTypes.map.isRequired
  5. },
  6. render () {
  7. var displayName = this.props.account.get('display_name', this.props.account.get('username'));
  8. var acct = this.props.account.get('acct');
  9. var url = this.props.account.get('url');
  10. return (
  11. <a href={url} style={{ display: 'inline-block', color: '#616b86', textDecoration: 'none', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', width: '190px' }}>
  12. <strong style={{ fontWeight: 'bold', color: '#fff' }}>{displayName}</strong> <span>{acct}</span>
  13. </a>
  14. );
  15. }
  16. });
  17. export default DisplayName;