diff options
author | Guille Cura <cura.gf@gmail.com> | 2018-07-05 02:37:43 -0300 |
---|---|---|
committer | Guille Cura <cura.gf@gmail.com> | 2018-07-05 02:37:43 -0300 |
commit | 25c6cbd29aff90f694d72afe28ab56b0113fb16a (patch) | |
tree | 9907623b3a7b835e58b895d08b62c5339b8e0376 /src/components/auth | |
parent | 5.0.0 beta.18 (diff) | |
download | ferdium-app-25c6cbd29aff90f694d72afe28ab56b0113fb16a.tar.gz ferdium-app-25c6cbd29aff90f694d72afe28ab56b0113fb16a.tar.zst ferdium-app-25c6cbd29aff90f694d72afe28ab56b0113fb16a.zip |
Update stylesheets and added darkMode variable and toggle.
Diffstat (limited to 'src/components/auth')
-rw-r--r-- | src/components/auth/AuthLayout.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/auth/AuthLayout.js b/src/components/auth/AuthLayout.js index 2741b8a15..105cae375 100644 --- a/src/components/auth/AuthLayout.js +++ b/src/components/auth/AuthLayout.js | |||
@@ -20,6 +20,7 @@ export default class AuthLayout extends Component { | |||
20 | isAPIHealthy: PropTypes.bool.isRequired, | 20 | isAPIHealthy: PropTypes.bool.isRequired, |
21 | retryHealthCheck: PropTypes.func.isRequired, | 21 | retryHealthCheck: PropTypes.func.isRequired, |
22 | isHealthCheckLoading: PropTypes.bool.isRequired, | 22 | isHealthCheckLoading: PropTypes.bool.isRequired, |
23 | darkMode: PropTypes.bool.isRequired | ||
23 | }; | 24 | }; |
24 | 25 | ||
25 | static contextTypes = { | 26 | static contextTypes = { |
@@ -35,11 +36,12 @@ export default class AuthLayout extends Component { | |||
35 | isAPIHealthy, | 36 | isAPIHealthy, |
36 | retryHealthCheck, | 37 | retryHealthCheck, |
37 | isHealthCheckLoading, | 38 | isHealthCheckLoading, |
39 | darkMode | ||
38 | } = this.props; | 40 | } = this.props; |
39 | const { intl } = this.context; | 41 | const { intl } = this.context; |
40 | 42 | ||
41 | return ( | 43 | return ( |
42 | <div className="auth"> | 44 | <div className={"auth" + (darkMode ? 'theme__dark' : '')}> |
43 | {!isOnline && ( | 45 | {!isOnline && ( |
44 | <InfoBar | 46 | <InfoBar |
45 | type="warning" | 47 | type="warning" |