This commit is contained in:
David Baker 2015-06-19 14:01:17 +01:00
parent 2abea931ca
commit 1270bc3c62
5 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,3 @@
.mx_MNoticeTile {
color: #666;
}

View file

@ -31,6 +31,7 @@ require('./views/molecules/MessageTile');
require('./views/molecules/SenderProfile');
require('./views/molecules/UnknownMessageTile');
require('./views/molecules/MTextTile');
require('./views/molecules/MNoticeTile');
require('./views/molecules/MEmoteTile');
require('./views/molecules/RoomHeader');
require('./views/molecules/MessageComposer');

View file

@ -0,0 +1,2 @@
module.exports = {
};

View file

@ -0,0 +1,17 @@
var React = require('react');
var MNoticeTileController = require("../../controllers/molecules/MNoticeTile");
module.exports = React.createClass({
mixins: [MNoticeTileController],
render: function() {
var content = this.props.mxEvent.getContent();
return (
<span className="mx_MNoticeTile">
{content.body}
</span>
);
},
});

View file

@ -11,6 +11,7 @@ var UnknownMessageTile = ComponentBroker.get('molecules/UnknownMessageTile');
var tileTypes = {
'm.text': ComponentBroker.get('molecules/MTextTile'),
'm.notice': ComponentBroker.get('molecules/MNoticeTile'),
'm.emote': ComponentBroker.get('molecules/MEmoteTile')
};