diff options
author | 2018-01-16 14:24:40 +0100 | |
---|---|---|
committer | 2018-01-16 14:24:40 +0100 | |
commit | 8765b8f4947f064350d046151dcda4434b55567a (patch) | |
tree | 04ea59e47d9c6548a2d5998153a8c1ffef96bb6b /src/components/layout | |
parent | Merge branch 'feature/remove-miner' into develop (diff) | |
download | ferdium-app-8765b8f4947f064350d046151dcda4434b55567a.tar.gz ferdium-app-8765b8f4947f064350d046151dcda4434b55567a.tar.zst ferdium-app-8765b8f4947f064350d046151dcda4434b55567a.zip |
Fix #32 service tooltips not initialized properly
tooltips have to be rebuilt when services are added (ReactTooltip seems to cache them at first render)
Diffstat (limited to 'src/components/layout')
-rw-r--r-- | src/components/layout/Sidebar.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/layout/Sidebar.js b/src/components/layout/Sidebar.js index 915ebeace..6fec80090 100644 --- a/src/components/layout/Sidebar.js +++ b/src/components/layout/Sidebar.js | |||
@@ -50,6 +50,10 @@ export default class Sidebar extends Component { | |||
50 | this.setState({ tooltipEnabled: false }); | 50 | this.setState({ tooltipEnabled: false }); |
51 | } | 51 | } |
52 | 52 | ||
53 | componentDidUpdate() { | ||
54 | ReactTooltip.rebuild(); | ||
55 | } | ||
56 | |||
53 | render() { | 57 | render() { |
54 | const { openSettings, toggleMuteApp, isAppMuted } = this.props; | 58 | const { openSettings, toggleMuteApp, isAppMuted } = this.props; |
55 | const { intl } = this.context; | 59 | const { intl } = this.context; |