Browse Source

Oops, commit the emote tile.

pull/1/head
David Baker 7 years ago
parent
commit
acaff68748
  1. 15
      src/molecules/MEmoteTile.js

15
src/molecules/MEmoteTile.js

@ -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…
Cancel
Save