parent
595c8dda60
commit
c249ceb10c
@ -1,3 +1,4 @@ |
||||
{ |
||||
"presets": ["es2015", "react"] |
||||
"presets": ["es2015", "react"], |
||||
"plugins": ["transform-object-rest-spread"] |
||||
} |
||||
|
@ -0,0 +1,19 @@ |
||||
import ImmutablePropTypes from 'react-immutable-proptypes'; |
||||
|
||||
const DisplayName = React.createClass({ |
||||
|
||||
propTypes: { |
||||
account: ImmutablePropTypes.map.isRequired |
||||
}, |
||||
|
||||
render () { |
||||
return ( |
||||
<span style={{ display: 'block', maxWidth: '100%', overflow: 'hidden', whiteSpace: 'nowrap', textOverflow: 'ellipsis' }}> |
||||
<strong style={{ fontWeight: 'bold' }}>{this.props.account.get('display_name')}</strong> <span style={{ fontSize: '14px' }}>@{this.props.account.get('acct')}</span> |
||||
</span> |
||||
); |
||||
} |
||||
|
||||
}); |
||||
|
||||
export default DisplayName; |
Loading…
Reference in new issue