diff options
author | 2018-11-16 20:38:56 +0100 | |
---|---|---|
committer | 2018-11-16 20:38:56 +0100 | |
commit | 6f89aa6853d2d5cdaa1262452280bb78ef7f5b89 (patch) | |
tree | 4e5081c1bf68970a3b32432dd67f2f20ca72bbc1 /src | |
parent | Merge branch 'develop' into feature/dark-theme (diff) | |
download | ferdium-app-6f89aa6853d2d5cdaa1262452280bb78ef7f5b89.tar.gz ferdium-app-6f89aa6853d2d5cdaa1262452280bb78ef7f5b89.tar.zst ferdium-app-6f89aa6853d2d5cdaa1262452280bb78ef7f5b89.zip |
Fix linting
Diffstat (limited to 'src')
-rw-r--r-- | src/components/auth/AuthLayout.js | 6 | ||||
-rw-r--r-- | src/components/layout/AppLayout.js | 4 | ||||
-rw-r--r-- | src/containers/layout/AppLayoutContainer.js | 1 |
3 files changed, 5 insertions, 6 deletions
diff --git a/src/components/auth/AuthLayout.js b/src/components/auth/AuthLayout.js index 2c2d1dd19..032588471 100644 --- a/src/components/auth/AuthLayout.js +++ b/src/components/auth/AuthLayout.js | |||
@@ -19,7 +19,7 @@ export default @observer class AuthLayout extends Component { | |||
19 | isAPIHealthy: PropTypes.bool.isRequired, | 19 | isAPIHealthy: PropTypes.bool.isRequired, |
20 | retryHealthCheck: PropTypes.func.isRequired, | 20 | retryHealthCheck: PropTypes.func.isRequired, |
21 | isHealthCheckLoading: PropTypes.bool.isRequired, | 21 | isHealthCheckLoading: PropTypes.bool.isRequired, |
22 | darkMode: PropTypes.bool.isRequired | 22 | darkMode: PropTypes.bool.isRequired, |
23 | }; | 23 | }; |
24 | 24 | ||
25 | static contextTypes = { | 25 | static contextTypes = { |
@@ -35,12 +35,12 @@ export default @observer class AuthLayout extends Component { | |||
35 | isAPIHealthy, | 35 | isAPIHealthy, |
36 | retryHealthCheck, | 36 | retryHealthCheck, |
37 | isHealthCheckLoading, | 37 | isHealthCheckLoading, |
38 | darkMode | 38 | darkMode, |
39 | } = this.props; | 39 | } = this.props; |
40 | const { intl } = this.context; | 40 | const { intl } = this.context; |
41 | 41 | ||
42 | return ( | 42 | return ( |
43 | <div className={"auth" + (darkMode ? 'theme__dark' : '')}> | 43 | <div className={`auth${darkMode ? ' theme__dark' : ''}`}> |
44 | {!isOnline && ( | 44 | {!isOnline && ( |
45 | <InfoBar | 45 | <InfoBar |
46 | type="warning" | 46 | type="warning" |
diff --git a/src/components/layout/AppLayout.js b/src/components/layout/AppLayout.js index e9b987918..a4003ef8e 100644 --- a/src/components/layout/AppLayout.js +++ b/src/components/layout/AppLayout.js | |||
@@ -57,7 +57,7 @@ export default @observer class AppLayout extends Component { | |||
57 | areRequiredRequestsSuccessful: PropTypes.bool.isRequired, | 57 | areRequiredRequestsSuccessful: PropTypes.bool.isRequired, |
58 | retryRequiredRequests: PropTypes.func.isRequired, | 58 | retryRequiredRequests: PropTypes.func.isRequired, |
59 | areRequiredRequestsLoading: PropTypes.bool.isRequired, | 59 | areRequiredRequestsLoading: PropTypes.bool.isRequired, |
60 | darkMode: PropTypes.bool.isRequired | 60 | darkMode: PropTypes.bool.isRequired, |
61 | }; | 61 | }; |
62 | 62 | ||
63 | static defaultProps = { | 63 | static defaultProps = { |
@@ -85,7 +85,7 @@ export default @observer class AppLayout extends Component { | |||
85 | areRequiredRequestsSuccessful, | 85 | areRequiredRequestsSuccessful, |
86 | retryRequiredRequests, | 86 | retryRequiredRequests, |
87 | areRequiredRequestsLoading, | 87 | areRequiredRequestsLoading, |
88 | darkMode | 88 | darkMode, |
89 | } = this.props; | 89 | } = this.props; |
90 | 90 | ||
91 | const { intl } = this.context; | 91 | const { intl } = this.context; |
diff --git a/src/containers/layout/AppLayoutContainer.js b/src/containers/layout/AppLayoutContainer.js index c61783e88..fb3be13c0 100644 --- a/src/containers/layout/AppLayoutContainer.js +++ b/src/containers/layout/AppLayoutContainer.js | |||
@@ -31,7 +31,6 @@ export default @inject('stores', 'actions') @observer class AppLayoutContainer e | |||
31 | settings, | 31 | settings, |
32 | globalError, | 32 | globalError, |
33 | requests, | 33 | requests, |
34 | darkMode, | ||
35 | } = this.props.stores; | 34 | } = this.props.stores; |
36 | 35 | ||
37 | const { | 36 | const { |