Skip to content

Commit f7c4cca

Browse files
committed
Add TODO after spending 15 mins trying to figure out the difference between props.collapsed and state.hidden
1 parent 869c08a commit f7c4cca

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎src/components/structures/RoomSubList.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ var RoomSubList = React.createClass({
6464
bottommost: React.PropTypes.bool,
6565
selectedRoom: React.PropTypes.string.isRequired,
6666
activityMap: React.PropTypes.object.isRequired,
67+
68+
// TODO: Fix the name of this. This is too easily confused with the
69+
// "hidden" state which is the expanded (or not) view of the list of rooms.
70+
// What this prop *really* does is control whether the room name is displayed
71+
// so it should be named as such.
6772
collapsed: React.PropTypes.bool.isRequired,
6873
onHeaderClick: React.PropTypes.func,
6974
alwaysShowHeader: React.PropTypes.bool

0 commit comments

Comments
 (0)