diff options
author | 2021-09-13 14:45:46 +0200 | |
---|---|---|
committer | 2021-09-13 14:45:46 +0200 | |
commit | 537697a6e9757f118d09d9e76362ba1ff617e2c6 (patch) | |
tree | bc55447115e385137684e84697a8c15d2199b8d5 /src/components/auth/AuthLayout.js | |
parent | Bumped up version to: 5.6.3-nightly.0 [skip ci] (diff) | |
download | ferdium-app-537697a6e9757f118d09d9e76362ba1ff617e2c6.tar.gz ferdium-app-537697a6e9757f118d09d9e76362ba1ff617e2c6.tar.zst ferdium-app-537697a6e9757f118d09d9e76362ba1ff617e2c6.zip |
chore: upgrade intl dependencies (#1920)
Diffstat (limited to 'src/components/auth/AuthLayout.js')
-rw-r--r-- | src/components/auth/AuthLayout.js | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/components/auth/AuthLayout.js b/src/components/auth/AuthLayout.js index 8235932c2..3e2b75731 100644 --- a/src/components/auth/AuthLayout.js +++ b/src/components/auth/AuthLayout.js | |||
@@ -1,9 +1,9 @@ | |||
1 | import React, { Component } from 'react'; | 1 | import React, { Component } from 'react'; |
2 | import PropTypes from 'prop-types'; | 2 | import PropTypes from 'prop-types'; |
3 | import { observer } from 'mobx-react'; | 3 | import { observer } from 'mobx-react'; |
4 | import { intlShape } from 'react-intl'; | ||
5 | import { TitleBar } from 'electron-react-titlebar'; | 4 | import { TitleBar } from 'electron-react-titlebar'; |
6 | 5 | ||
6 | import { injectIntl } from 'react-intl'; | ||
7 | import Link from '../ui/Link'; | 7 | import Link from '../ui/Link'; |
8 | import InfoBar from '../ui/InfoBar'; | 8 | import InfoBar from '../ui/InfoBar'; |
9 | 9 | ||
@@ -17,7 +17,6 @@ import { isWindows } from '../../environment'; | |||
17 | import AppUpdateInfoBar from '../AppUpdateInfoBar'; | 17 | import AppUpdateInfoBar from '../AppUpdateInfoBar'; |
18 | import { GITHUB_FERDI_URL } from '../../config'; | 18 | import { GITHUB_FERDI_URL } from '../../config'; |
19 | 19 | ||
20 | export default | ||
21 | @observer | 20 | @observer |
22 | class AuthLayout extends Component { | 21 | class AuthLayout extends Component { |
23 | static propTypes = { | 22 | static propTypes = { |
@@ -36,10 +35,6 @@ class AuthLayout extends Component { | |||
36 | shouldShowAppUpdateInfoBar: true, | 35 | shouldShowAppUpdateInfoBar: true, |
37 | }; | 36 | }; |
38 | 37 | ||
39 | static contextTypes = { | ||
40 | intl: intlShape, | ||
41 | }; | ||
42 | |||
43 | render() { | 38 | render() { |
44 | const { | 39 | const { |
45 | children, | 40 | children, |
@@ -52,7 +47,8 @@ class AuthLayout extends Component { | |||
52 | installAppUpdate, | 47 | installAppUpdate, |
53 | appUpdateIsDownloaded, | 48 | appUpdateIsDownloaded, |
54 | } = this.props; | 49 | } = this.props; |
55 | const { intl } = this.context; | 50 | |
51 | const { intl } = this.props; | ||
56 | 52 | ||
57 | return ( | 53 | return ( |
58 | <> | 54 | <> |
@@ -108,3 +104,5 @@ class AuthLayout extends Component { | |||
108 | ); | 104 | ); |
109 | } | 105 | } |
110 | } | 106 | } |
107 | |||
108 | export default injectIntl(AuthLayout); | ||