diff options
author | 2021-10-15 09:48:06 +0200 | |
---|---|---|
committer | 2021-10-15 09:48:06 +0200 | |
commit | 14d2364fc69e0222133115c55a36286986006098 (patch) | |
tree | 9e9b3c41ef742bbe87ca1632b292c67043051957 /src/components/ui/ServiceIcon.js | |
parent | 5.6.3-nightly.34 [skip ci] (diff) | |
download | ferdium-app-14d2364fc69e0222133115c55a36286986006098.tar.gz ferdium-app-14d2364fc69e0222133115c55a36286986006098.tar.zst ferdium-app-14d2364fc69e0222133115c55a36286986006098.zip |
chore: update eslint setup (#2074)
Diffstat (limited to 'src/components/ui/ServiceIcon.js')
-rw-r--r-- | src/components/ui/ServiceIcon.js | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/components/ui/ServiceIcon.js b/src/components/ui/ServiceIcon.js index 2e9312d27..f067f8955 100644 --- a/src/components/ui/ServiceIcon.js +++ b/src/components/ui/ServiceIcon.js | |||
@@ -6,7 +6,7 @@ import classnames from 'classnames'; | |||
6 | 6 | ||
7 | import ServiceModel from '../../models/Service'; | 7 | import ServiceModel from '../../models/Service'; |
8 | 8 | ||
9 | const styles = (theme) => ({ | 9 | const styles = theme => ({ |
10 | root: { | 10 | root: { |
11 | height: 'auto', | 11 | height: 'auto', |
12 | }, | 12 | }, |
@@ -24,7 +24,8 @@ const styles = (theme) => ({ | |||
24 | }, | 24 | }, |
25 | }); | 25 | }); |
26 | 26 | ||
27 | @injectSheet(styles) @observer | 27 | @injectSheet(styles) |
28 | @observer | ||
28 | class ServiceIcon extends Component { | 29 | class ServiceIcon extends Component { |
29 | static propTypes = { | 30 | static propTypes = { |
30 | classes: PropTypes.object.isRequired, | 31 | classes: PropTypes.object.isRequired, |
@@ -37,19 +38,10 @@ class ServiceIcon extends Component { | |||
37 | }; | 38 | }; |
38 | 39 | ||
39 | render() { | 40 | render() { |
40 | const { | 41 | const { classes, className, service } = this.props; |
41 | classes, | ||
42 | className, | ||
43 | service, | ||
44 | } = this.props; | ||
45 | 42 | ||
46 | return ( | 43 | return ( |
47 | <div | 44 | <div className={classnames([classes.root, className])}> |
48 | className={classnames([ | ||
49 | classes.root, | ||
50 | className, | ||
51 | ])} | ||
52 | > | ||
53 | <img | 45 | <img |
54 | src={service.icon} | 46 | src={service.icon} |
55 | className={classnames([ | 47 | className={classnames([ |