Skip to content

Commit

Permalink
get adding FilePanel
Browse files Browse the repository at this point in the history
  • Loading branch information
ara4n committed Aug 31, 2016
1 parent a047f81 commit 9d72a7c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/structures/RightPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = React.createClass({

Phase : {
MemberList: 'MemberList',
FileList: 'FileList',
FilePanel: 'FilePanel',
NotificationPanel: 'NotificationPanel',
MemberInfo: 'MemberInfo',
},
Expand Down Expand Up @@ -131,7 +131,7 @@ module.exports = React.createClass({
if (this.state.phase == this.Phase.MemberList || this.state.phase === this.Phase.MemberInfo) {
membersHighlight = <div className="mx_RightPanel_headerButton_highlight"></div>;
}
else if (this.state.phase == this.Phase.FileList) {
else if (this.state.phase == this.Phase.FilePanel) {
filesHighlight = <div className="mx_RightPanel_headerButton_highlight"></div>;
}
else if (this.state.phase == this.Phase.NotificationPanel) {
Expand Down Expand Up @@ -178,6 +178,9 @@ module.exports = React.createClass({
else if (this.state.phase == this.Phase.NotificationPanel) {
panel = <NotificationPanel />
}
else if (this.state.phase == this.Phase.FilePanel) {
panel = <FilesPanel roomId={this.props.roomId} />
}
}

if (!panel) {
Expand Down

0 comments on commit 9d72a7c

Please sign in to comment.