diff options
author | 2022-07-19 12:52:31 +0100 | |
---|---|---|
committer | 2022-07-19 12:52:31 +0100 | |
commit | 3bb1ca7825a0381ddd8dbe7f44f7dcf4a788b165 (patch) | |
tree | 6b414b9ef3be7656da1717b0d6def62e95d1fb90 /src/components/auth/AuthLayout.jsx | |
parent | fix: remove autoHibernate (diff) | |
download | ferdium-app-3bb1ca7825a0381ddd8dbe7f44f7dcf4a788b165.tar.gz ferdium-app-3bb1ca7825a0381ddd8dbe7f44f7dcf4a788b165.tar.zst ferdium-app-3bb1ca7825a0381ddd8dbe7f44f7dcf4a788b165.zip |
Feature: Add Release Notes (#491)
Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Co-authored-by: Ricardo Cino <ricardo@cino.io>
Diffstat (limited to 'src/components/auth/AuthLayout.jsx')
-rw-r--r-- | src/components/auth/AuthLayout.jsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/auth/AuthLayout.jsx b/src/components/auth/AuthLayout.jsx index 8a88cedb1..5c87c3080 100644 --- a/src/components/auth/AuthLayout.jsx +++ b/src/components/auth/AuthLayout.jsx | |||
@@ -14,6 +14,7 @@ import { | |||
14 | oneOrManyChildElements, | 14 | oneOrManyChildElements, |
15 | globalError as globalErrorPropType, | 15 | globalError as globalErrorPropType, |
16 | } from '../../prop-types'; | 16 | } from '../../prop-types'; |
17 | import { updateVersionParse } from '../../helpers/update-helpers'; | ||
17 | import globalMessages from '../../i18n/globalMessages'; | 18 | import globalMessages from '../../i18n/globalMessages'; |
18 | 19 | ||
19 | import { isWindows } from '../../environment'; | 20 | import { isWindows } from '../../environment'; |
@@ -34,6 +35,7 @@ class AuthLayout extends Component { | |||
34 | isFullScreen: PropTypes.bool.isRequired, | 35 | isFullScreen: PropTypes.bool.isRequired, |
35 | installAppUpdate: PropTypes.func.isRequired, | 36 | installAppUpdate: PropTypes.func.isRequired, |
36 | appUpdateIsDownloaded: PropTypes.bool.isRequired, | 37 | appUpdateIsDownloaded: PropTypes.bool.isRequired, |
38 | updateVersion: PropTypes.string.isRequired, | ||
37 | }; | 39 | }; |
38 | 40 | ||
39 | constructor() { | 41 | constructor() { |
@@ -55,10 +57,10 @@ class AuthLayout extends Component { | |||
55 | isFullScreen, | 57 | isFullScreen, |
56 | installAppUpdate, | 58 | installAppUpdate, |
57 | appUpdateIsDownloaded, | 59 | appUpdateIsDownloaded, |
60 | updateVersion, | ||
58 | } = this.props; | 61 | } = this.props; |
59 | 62 | ||
60 | const { intl } = this.props; | 63 | const { intl } = this.props; |
61 | |||
62 | let serverNameParse = serverName(); | 64 | let serverNameParse = serverName(); |
63 | serverNameParse = | 65 | serverNameParse = |
64 | serverNameParse === 'Custom' ? 'your Custom Server' : serverNameParse; | 66 | serverNameParse === 'Custom' ? 'your Custom Server' : serverNameParse; |
@@ -81,6 +83,7 @@ class AuthLayout extends Component { | |||
81 | {appUpdateIsDownloaded && this.state.shouldShowAppUpdateInfoBar && ( | 83 | {appUpdateIsDownloaded && this.state.shouldShowAppUpdateInfoBar && ( |
82 | <AppUpdateInfoBar | 84 | <AppUpdateInfoBar |
83 | onInstallUpdate={installAppUpdate} | 85 | onInstallUpdate={installAppUpdate} |
86 | updateVersionParsed={updateVersionParse(updateVersion)} | ||
84 | onHide={() => { | 87 | onHide={() => { |
85 | this.setState({ shouldShowAppUpdateInfoBar: false }); | 88 | this.setState({ shouldShowAppUpdateInfoBar: false }); |
86 | }} | 89 | }} |