summaryrefslogtreecommitdiff
path: root/frontend/src/components/app/sidebars/Sidebar.js
diff options
context:
space:
mode:
authorjc0b <j@jc0b.computer>2020-07-22 16:28:47 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-08-24 19:48:21 +0200
commitd7469b9ebb01cf36a78cc98aab31fa8f307c4f65 (patch)
treed0535fa0cfe95001302fbd2b0d046d51caab6ffd /frontend/src/components/app/sidebars/Sidebar.js
parent67b6ec800df8e023efadb60ae5f7919030b19789 (diff)
parent9e7cb3bd367607b32e102c3a87b68b33c53dec46 (diff)
Merge branch 'master' onto working copy
Diffstat (limited to 'frontend/src/components/app/sidebars/Sidebar.js')
-rw-r--r--frontend/src/components/app/sidebars/Sidebar.js17
1 files changed, 5 insertions, 12 deletions
diff --git a/frontend/src/components/app/sidebars/Sidebar.js b/frontend/src/components/app/sidebars/Sidebar.js
index a47a67c0..e1760d5e 100644
--- a/frontend/src/components/app/sidebars/Sidebar.js
+++ b/frontend/src/components/app/sidebars/Sidebar.js
@@ -10,7 +10,7 @@ class Sidebar extends React.Component {
}
static defaultProps = {
- collapsible: true
+ collapsible: true,
}
state = {
@@ -25,17 +25,10 @@ class Sidebar extends React.Component {
})}
onClick={() => this.setState({ collapsed: !this.state.collapsed })}
>
- {(this.state.collapsed && this.props.isRight) ||
- (!this.state.collapsed && !this.props.isRight) ? (
- <span
- className="fa fa-angle-left"
- title={this.props.isRight ? 'Expand' : 'Collapse'}
- />
+ {(this.state.collapsed && this.props.isRight) || (!this.state.collapsed && !this.props.isRight) ? (
+ <span className="fa fa-angle-left" title={this.props.isRight ? 'Expand' : 'Collapse'} />
) : (
- <span
- className="fa fa-angle-right"
- title={this.props.isRight ? 'Collapse' : 'Expand'}
- />
+ <span className="fa fa-angle-right" title={this.props.isRight ? 'Collapse' : 'Expand'} />
)}
</div>
)
@@ -48,7 +41,7 @@ class Sidebar extends React.Component {
className={classNames('sidebar p-3 h-100', {
'sidebar-right': this.props.isRight,
})}
- onWheel={e => e.stopPropagation()}
+ onWheel={(e) => e.stopPropagation()}
>
{this.props.children}
{this.props.collapsible && collapseButton}