mirror of
https://github.com/element-hq/element-web
synced 2024-11-22 01:05:42 +03:00
Oops, commit the emote tile.
This commit is contained in:
parent
3a16c8a764
commit
acaff68748
1 changed files with 15 additions and 0 deletions
15
src/molecules/MEmoteTile.js
Normal file
15
src/molecules/MEmoteTile.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
var React = require('react');
|
||||
|
||||
module.exports = React.createClass({
|
||||
render: function() {
|
||||
var mxEvent = this.props.mxEvent;
|
||||
var content = mxEvent.getContent();
|
||||
var name = mxEvent.sender ? mxEvent.sender.name : mxEvent.getSender();
|
||||
return (
|
||||
<span className="mx_MEmoteTile">
|
||||
{name} {content.body}
|
||||
</span>
|
||||
);
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in a new issue