From acaff68748281682ff42ed9a58067402172ba41d Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 16 Jun 2015 18:18:34 +0100 Subject: [PATCH] Oops, commit the emote tile. --- src/molecules/MEmoteTile.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/molecules/MEmoteTile.js diff --git a/src/molecules/MEmoteTile.js b/src/molecules/MEmoteTile.js new file mode 100644 index 0000000000..19e57c5f2f --- /dev/null +++ b/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 ( + + {name} {content.body} + + ); + }, +}); +