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/ui/WebviewLoader | |
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/ui/WebviewLoader')
-rw-r--r-- | src/components/ui/WebviewLoader/index.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/components/ui/WebviewLoader/index.js b/src/components/ui/WebviewLoader/index.js index c58d69374..8f4499e7b 100644 --- a/src/components/ui/WebviewLoader/index.js +++ b/src/components/ui/WebviewLoader/index.js | |||
@@ -2,7 +2,7 @@ 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 injectSheet from 'react-jss'; | 4 | import injectSheet from 'react-jss'; |
5 | import { defineMessages, intlShape } from 'react-intl'; | 5 | import { defineMessages, injectIntl } from 'react-intl'; |
6 | 6 | ||
7 | import FullscreenLoader from '../FullscreenLoader'; | 7 | import FullscreenLoader from '../FullscreenLoader'; |
8 | import styles from './styles'; | 8 | import styles from './styles'; |
@@ -10,23 +10,21 @@ import styles from './styles'; | |||
10 | const messages = defineMessages({ | 10 | const messages = defineMessages({ |
11 | loading: { | 11 | loading: { |
12 | id: 'service.webviewLoader.loading', | 12 | id: 'service.webviewLoader.loading', |
13 | defaultMessage: '!!!Loading {service}', | 13 | defaultMessage: 'Loading {service}', |
14 | }, | 14 | }, |
15 | }); | 15 | }); |
16 | 16 | ||
17 | export default @injectSheet(styles) @observer class WebviewLoader extends Component { | 17 | @injectSheet(styles) |
18 | @observer | ||
19 | class WebviewLoader extends Component { | ||
18 | static propTypes = { | 20 | static propTypes = { |
19 | name: PropTypes.string.isRequired, | 21 | name: PropTypes.string.isRequired, |
20 | classes: PropTypes.object.isRequired, | 22 | classes: PropTypes.object.isRequired, |
21 | }; | 23 | }; |
22 | 24 | ||
23 | static contextTypes = { | ||
24 | intl: intlShape, | ||
25 | }; | ||
26 | |||
27 | render() { | 25 | render() { |
28 | const { classes, name } = this.props; | 26 | const { classes, name } = this.props; |
29 | const { intl } = this.context; | 27 | const { intl } = this.props; |
30 | return ( | 28 | return ( |
31 | <FullscreenLoader | 29 | <FullscreenLoader |
32 | className={classes.component} | 30 | className={classes.component} |
@@ -35,3 +33,5 @@ export default @injectSheet(styles) @observer class WebviewLoader extends Compon | |||
35 | ); | 33 | ); |
36 | } | 34 | } |
37 | } | 35 | } |
36 | |||
37 | export default injectIntl(WebviewLoader); | ||