|
@ -1,5 +1,10 @@ |
|
|
import ImmutablePropTypes from 'react-immutable-proptypes'; |
|
|
import ImmutablePropTypes from 'react-immutable-proptypes'; |
|
|
import PureRenderMixin from 'react-addons-pure-render-mixin'; |
|
|
|
|
|
|
|
|
import PureRenderMixin from 'react-addons-pure-render-mixin'; |
|
|
|
|
|
import emojione from 'emojione'; |
|
|
|
|
|
|
|
|
|
|
|
emojione.imageType = 'png'; |
|
|
|
|
|
emojione.sprites = false; |
|
|
|
|
|
emojione.imagePathPNG = '/emoji/'; |
|
|
|
|
|
|
|
|
const StatusContent = React.createClass({ |
|
|
const StatusContent = React.createClass({ |
|
|
|
|
|
|
|
@ -55,7 +60,7 @@ const StatusContent = React.createClass({ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
render () { |
|
|
render () { |
|
|
const content = { __html: this.props.status.get('content') }; |
|
|
|
|
|
|
|
|
const content = { __html: emojione.unicodeToImage(this.props.status.get('content')) }; |
|
|
return <div className='status__content' dangerouslySetInnerHTML={content} />; |
|
|
return <div className='status__content' dangerouslySetInnerHTML={content} />; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|