diff options
Diffstat (limited to 'src/components/ui')
-rw-r--r-- | src/components/ui/Modal/styles.ts | 2 | ||||
-rw-r--r-- | src/components/ui/ServiceIcon.js | 18 | ||||
-rw-r--r-- | src/components/ui/WebviewLoader/styles.ts | 2 |
3 files changed, 7 insertions, 15 deletions
diff --git a/src/components/ui/Modal/styles.ts b/src/components/ui/Modal/styles.ts index f32c075ce..c2bebf9bb 100644 --- a/src/components/ui/Modal/styles.ts +++ b/src/components/ui/Modal/styles.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | export default (theme) => ({ | 1 | export default theme => ({ |
2 | component: { | 2 | component: { |
3 | zIndex: 500, | 3 | zIndex: 500, |
4 | position: 'absolute', | 4 | position: 'absolute', |
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([ |
diff --git a/src/components/ui/WebviewLoader/styles.ts b/src/components/ui/WebviewLoader/styles.ts index 5d58011fe..dbd75db8a 100644 --- a/src/components/ui/WebviewLoader/styles.ts +++ b/src/components/ui/WebviewLoader/styles.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | export default (theme) => ({ | 1 | export default theme => ({ |
2 | component: { | 2 | component: { |
3 | background: theme.colorWebviewLoaderBackground, | 3 | background: theme.colorWebviewLoaderBackground, |
4 | padding: 20, | 4 | padding: 20, |