diff options
author | 2021-09-13 14:45:46 +0200 | |
---|---|---|
committer | 2021-09-13 14:45:46 +0200 | |
commit | 537697a6e9757f118d09d9e76362ba1ff617e2c6 (patch) | |
tree | bc55447115e385137684e84697a8c15d2199b8d5 /src/features/webControls/components | |
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/features/webControls/components')
-rw-r--r-- | src/features/webControls/components/WebControls.js | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/features/webControls/components/WebControls.js b/src/features/webControls/components/WebControls.js index bebf52c08..97fa20dcc 100644 --- a/src/features/webControls/components/WebControls.js +++ b/src/features/webControls/components/WebControls.js | |||
@@ -3,7 +3,7 @@ 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 { Icon } from '@meetfranz/ui'; | 5 | import { Icon } from '@meetfranz/ui'; |
6 | import { defineMessages, intlShape } from 'react-intl'; | 6 | import { defineMessages, injectIntl } from 'react-intl'; |
7 | 7 | ||
8 | import { | 8 | import { |
9 | mdiReload, | 9 | mdiReload, |
@@ -16,23 +16,23 @@ import { | |||
16 | const messages = defineMessages({ | 16 | const messages = defineMessages({ |
17 | goHome: { | 17 | goHome: { |
18 | id: 'webControls.goHome', | 18 | id: 'webControls.goHome', |
19 | defaultMessage: '!!!Home', | 19 | defaultMessage: 'Home', |
20 | }, | 20 | }, |
21 | openInBrowser: { | 21 | openInBrowser: { |
22 | id: 'webControls.openInBrowser', | 22 | id: 'webControls.openInBrowser', |
23 | defaultMessage: '!!!Open in Browser', | 23 | defaultMessage: 'Open in Browser', |
24 | }, | 24 | }, |
25 | back: { | 25 | back: { |
26 | id: 'webControls.back', | 26 | id: 'webControls.back', |
27 | defaultMessage: '!!!Back', | 27 | defaultMessage: 'Back', |
28 | }, | 28 | }, |
29 | forward: { | 29 | forward: { |
30 | id: 'webControls.forward', | 30 | id: 'webControls.forward', |
31 | defaultMessage: '!!!Forward', | 31 | defaultMessage: 'Forward', |
32 | }, | 32 | }, |
33 | reload: { | 33 | reload: { |
34 | id: 'webControls.reload', | 34 | id: 'webControls.reload', |
35 | defaultMessage: '!!!Reload', | 35 | defaultMessage: 'Reload', |
36 | }, | 36 | }, |
37 | }); | 37 | }); |
38 | 38 | ||
@@ -109,10 +109,6 @@ class WebControls extends Component { | |||
109 | navigate: PropTypes.func.isRequired, | 109 | navigate: PropTypes.func.isRequired, |
110 | }; | 110 | }; |
111 | 111 | ||
112 | static contextTypes = { | ||
113 | intl: intlShape, | ||
114 | }; | ||
115 | |||
116 | static getDerivedStateFromProps(props, state) { | 112 | static getDerivedStateFromProps(props, state) { |
117 | const { url } = props; | 113 | const { url } = props; |
118 | const { editUrl } = state; | 114 | const { editUrl } = state; |
@@ -148,7 +144,7 @@ class WebControls extends Component { | |||
148 | 144 | ||
149 | const { inputUrl, editUrl } = this.state; | 145 | const { inputUrl, editUrl } = this.state; |
150 | 146 | ||
151 | const { intl } = this.context; | 147 | const { intl } = this.props; |
152 | 148 | ||
153 | return ( | 149 | return ( |
154 | <div className={classes.root}> | 150 | <div className={classes.root}> |
@@ -241,4 +237,4 @@ class WebControls extends Component { | |||
241 | } | 237 | } |
242 | } | 238 | } |
243 | 239 | ||
244 | export default WebControls; | 240 | export default injectIntl(WebControls); |