Something starting to resemble a Matrix Client
This commit is contained in:
parent
2f6a123118
commit
125fa78bc6
15 changed files with 148 additions and 21 deletions
|
@ -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} />
|
||||
);
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue