Skip to content

Commit

Permalink
Whitespace fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
yrokhlin committed Jan 26, 2016
1 parent 99c3eb0 commit 30c60dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions lib/OffCanvas/OffCanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,13 @@ var OffCanvas = (0, _radium2.default)(_class = (_temp = _class2 = function (_Com
case 'squeeze':
if (this.state.expanded) return this.props.expandedWidth;
return this.props.rightWidth;

case 'push':
if (this.state.expanded) return this.props.expandedWidth;
return this.props.rightWidth;

case 'overlay':
if (this.state.expanded) {
return type === 'padding' ? 0 : this.props.expandedWidth;
}
if (this.state.expanded) return type === 'padding' ? 0 : this.props.expandedWidth;
return type === 'padding' ? 0 : this.props.rightWidth;
}
} else {
Expand Down
8 changes: 3 additions & 5 deletions src/OffCanvas/OffCanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,6 @@ export default class OffCanvas extends Component {

return this.props.rightWidth * -1
}


}

_calculateRight(type) {
Expand All @@ -189,13 +187,13 @@ export default class OffCanvas extends Component {
case 'squeeze':
if(this.state.expanded) return this.props.expandedWidth;
return this.props.rightWidth;

case 'push':
if(this.state.expanded) return this.props.expandedWidth;
return this.props.rightWidth;

case 'overlay':
if(this.state.expanded) {
return type === 'padding' ? 0 : this.props.expandedWidth;
}
if(this.state.expanded) return type === 'padding' ? 0 : this.props.expandedWidth;
return type === 'padding' ? 0 : this.props.rightWidth;
}
} else {
Expand Down

0 comments on commit 30c60dd

Please sign in to comment.