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