2016-08-24 16:56:44 +01:00
|
|
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
|
|
|
|
|
|
const Status = React.createClass({
|
|
|
|
propTypes: {
|
|
|
|
status: ImmutablePropTypes.map.isRequired
|
|
|
|
},
|
|
|
|
|
|
|
|
render: function() {
|
2016-08-24 18:23:37 +01:00
|
|
|
var content = { __html: this.props.status.get('content') };
|
2016-08-24 16:56:44 +01:00
|
|
|
|
|
|
|
return (
|
2016-08-24 18:23:37 +01:00
|
|
|
<div style={{ padding: '5px' }}>
|
|
|
|
<div><strong>{this.props.status.getIn(['account', 'username'])}</strong></div>
|
|
|
|
<div dangerouslySetInnerHTML={content} />
|
2016-08-24 16:56:44 +01:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
export default Status;
|