diff options
Diffstat (limited to 'src/components/auth/AuthLayout.js')
-rw-r--r-- | src/components/auth/AuthLayout.js | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/components/auth/AuthLayout.js b/src/components/auth/AuthLayout.js index 8235932c2..17ac221a2 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'; | 4 | import { TitleBar } from 'electron-react-titlebar/renderer'; |
5 | 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); | ||