diff options
author | 2021-11-12 03:59:35 +0100 | |
---|---|---|
committer | 2021-11-12 08:29:35 +0530 | |
commit | 53937fd58023ef800bd8ca1cd2b6d2d7bc891834 (patch) | |
tree | ea70778761addfaba1732dcb515dabd9f37f09ea /src/components/services/content/ServiceView.js | |
parent | Use forked version of 'node-mac-permissions' till the PR gets merged (#2216) (diff) | |
download | ferdium-app-53937fd58023ef800bd8ca1cd2b6d2d7bc891834.tar.gz ferdium-app-53937fd58023ef800bd8ca1cd2b6d2d7bc891834.tar.zst ferdium-app-53937fd58023ef800bd8ca1cd2b6d2d7bc891834.zip |
chore: update eslint deps to latest (#2213)
- update eslint deps to latest
- disable new react/function-component-definition rule
- fix/disable newly reported issues
Diffstat (limited to 'src/components/services/content/ServiceView.js')
-rw-r--r-- | src/components/services/content/ServiceView.js | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/components/services/content/ServiceView.js b/src/components/services/content/ServiceView.js index 1bc1fbf5f..1ffdd2153 100644 --- a/src/components/services/content/ServiceView.js +++ b/src/components/services/content/ServiceView.js | |||
@@ -1,3 +1,4 @@ | |||
1 | /* eslint-disable react/jsx-no-useless-fragment */ | ||
1 | import { Component, Fragment } from 'react'; | 2 | import { Component, Fragment } from 'react'; |
2 | import PropTypes from 'prop-types'; | 3 | import PropTypes from 'prop-types'; |
3 | import { autorun } from 'mobx'; | 4 | import { autorun } from 'mobx'; |
@@ -65,17 +66,6 @@ class ServiceView extends Component { | |||
65 | clearTimeout(this.hibernationTimer); | 66 | clearTimeout(this.hibernationTimer); |
66 | } | 67 | } |
67 | 68 | ||
68 | updateTargetUrl = event => { | ||
69 | let visible = true; | ||
70 | if (event.url === '' || event.url === '#') { | ||
71 | visible = false; | ||
72 | } | ||
73 | this.setState({ | ||
74 | targetUrl: event.url, | ||
75 | statusBarVisible: visible, | ||
76 | }); | ||
77 | }; | ||
78 | |||
79 | render() { | 69 | render() { |
80 | const { | 70 | const { |
81 | detachService, | 71 | detachService, |