element-web/src/views/molecules/RoomTile.js

21 lines
604 B
JavaScript
Raw Normal View History

var React = require('react');
var classNames = require('classnames');
var RoomTileController = require("../../controllers/molecules/RoomTile");
module.exports = React.createClass({
mixins: [RoomTileController],
render: function() {
var classes = classNames({
'mx_RoomTile': true,
2015-06-18 13:35:17 +00:00
'selected': this.props.selected,
'unread': this.props.unread
});
return (
<div className={classes} onClick={this.onClick}>
2015-06-12 13:59:33 +00:00
<div className="mx_RoomTile_name">{this.props.room.name}</div>
</div>
);
}
});