mirror of https://github.com/vector-im/riot-web
m.notice
parent
2abea931ca
commit
1270bc3c62
|
@ -0,0 +1,3 @@
|
||||||
|
.mx_MNoticeTile {
|
||||||
|
color: #666;
|
||||||
|
}
|
|
@ -31,6 +31,7 @@ require('./views/molecules/MessageTile');
|
||||||
require('./views/molecules/SenderProfile');
|
require('./views/molecules/SenderProfile');
|
||||||
require('./views/molecules/UnknownMessageTile');
|
require('./views/molecules/UnknownMessageTile');
|
||||||
require('./views/molecules/MTextTile');
|
require('./views/molecules/MTextTile');
|
||||||
|
require('./views/molecules/MNoticeTile');
|
||||||
require('./views/molecules/MEmoteTile');
|
require('./views/molecules/MEmoteTile');
|
||||||
require('./views/molecules/RoomHeader');
|
require('./views/molecules/RoomHeader');
|
||||||
require('./views/molecules/MessageComposer');
|
require('./views/molecules/MessageComposer');
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
module.exports = {
|
||||||
|
};
|
|
@ -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>
|
||||||
|
);
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
|
@ -11,6 +11,7 @@ var UnknownMessageTile = ComponentBroker.get('molecules/UnknownMessageTile');
|
||||||
|
|
||||||
var tileTypes = {
|
var tileTypes = {
|
||||||
'm.text': ComponentBroker.get('molecules/MTextTile'),
|
'm.text': ComponentBroker.get('molecules/MTextTile'),
|
||||||
|
'm.notice': ComponentBroker.get('molecules/MNoticeTile'),
|
||||||
'm.emote': ComponentBroker.get('molecules/MEmoteTile')
|
'm.emote': ComponentBroker.get('molecules/MEmoteTile')
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue