aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorLibravatar haraldox <hnaumann+github@gmail.com>2018-01-17 12:09:34 +0100
committerLibravatar haraldox <hnaumann+github@gmail.com>2018-01-17 12:09:34 +0100
commitc1e9104970619e191122eb6924003b35091ffb19 (patch)
treeb5e50ce2c387a03e05895d27020dd0f4662c55b2 /src/components
parentMerge branch 'develop' into fix-service-tooltips-initialization (diff)
downloadferdium-app-c1e9104970619e191122eb6924003b35091ffb19.tar.gz
ferdium-app-c1e9104970619e191122eb6924003b35091ffb19.tar.zst
ferdium-app-c1e9104970619e191122eb6924003b35091ffb19.zip
fix linting issue
react component lifecycle method order
Diffstat (limited to 'src/components')
-rw-r--r--src/components/layout/Sidebar.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/layout/Sidebar.js b/src/components/layout/Sidebar.js
index 6fec80090..fa269f216 100644
--- a/src/components/layout/Sidebar.js
+++ b/src/components/layout/Sidebar.js
@@ -42,6 +42,10 @@ export default class Sidebar extends Component {
42 tooltipEnabled: true, 42 tooltipEnabled: true,
43 }; 43 };
44 44
45 componentDidUpdate() {
46 ReactTooltip.rebuild();
47 }
48
45 enableToolTip() { 49 enableToolTip() {
46 this.setState({ tooltipEnabled: true }); 50 this.setState({ tooltipEnabled: true });
47 } 51 }
@@ -50,10 +54,6 @@ export default class Sidebar extends Component {
50 this.setState({ tooltipEnabled: false }); 54 this.setState({ tooltipEnabled: false });
51 } 55 }
52 56
53 componentDidUpdate() {
54 ReactTooltip.rebuild();
55 }
56
57 render() { 57 render() {
58 const { openSettings, toggleMuteApp, isAppMuted } = this.props; 58 const { openSettings, toggleMuteApp, isAppMuted } = this.props;
59 const { intl } = this.context; 59 const { intl } = this.context;