Something starting to resemble a Matrix Client

This commit is contained in:
David Baker 2015-06-12 17:34:17 +01:00
parent 2f6a123118
commit 125fa78bc6
15 changed files with 148 additions and 21 deletions

View file

@ -12,9 +12,11 @@ module.exports = React.createClass({
},
makeRoomTiles: function() {
var that = this;
return this.state.roomList.map(function(room) {
var selected = room.roomId == that.props.selectedRoom;
return (
<RoomTile room={room} key={room.roomId} />
<RoomTile room={room} key={room.roomId} selected={selected} />
);
});
},