matrix-bot/themes/base/views/molecules/MNoticeTile.js

19 lines
446 B
JavaScript
Raw Normal View History

2015-06-19 15:01:17 +02:00
var React = require('react');
var MNoticeTileController = require("../../../../src/controllers/molecules/MNoticeTile");
2015-06-19 15:01:17 +02:00
module.exports = React.createClass({
displayName: 'MNoticeTile',
2015-06-19 15:01:17 +02:00
mixins: [MNoticeTileController],
render: function() {
var content = this.props.mxEvent.getContent();
return (
<span className="mx_MNoticeTile">
{content.body}
</span>
);
},
});