mirror of
https://github.com/element-hq/element-web
synced 2024-11-22 01:05:42 +03:00
m.notice
This commit is contained in:
parent
2abea931ca
commit
1270bc3c62
5 changed files with 24 additions and 0 deletions
3
css/molecules/MNoticeTile.css
Normal file
3
css/molecules/MNoticeTile.css
Normal file
|
@ -0,0 +1,3 @@
|
|||
.mx_MNoticeTile {
|
||||
color: #666;
|
||||
}
|
|
@ -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');
|
||||
|
|
2
src/controllers/molecules/MNoticeTile.js
Normal file
2
src/controllers/molecules/MNoticeTile.js
Normal file
|
@ -0,0 +1,2 @@
|
|||
module.exports = {
|
||||
};
|
17
src/views/molecules/MNoticeTile.js
Normal file
17
src/views/molecules/MNoticeTile.js
Normal 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>
|
||||
);
|
||||
},
|
||||
});
|
||||
|
|
@ -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')
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue