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/Infobox.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/ui/Infobox.js')
-rw-r--r-- | src/components/ui/Infobox.js | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/components/ui/Infobox.js b/src/components/ui/Infobox.js index 73b48b957..13ae2303b 100644 --- a/src/components/ui/Infobox.js +++ b/src/components/ui/Infobox.js | |||
@@ -3,16 +3,15 @@ import PropTypes from 'prop-types'; | |||
3 | import { observer } from 'mobx-react'; | 3 | import { observer } from 'mobx-react'; |
4 | import classnames from 'classnames'; | 4 | import classnames from 'classnames'; |
5 | import Loader from 'react-loader'; | 5 | import Loader from 'react-loader'; |
6 | import { defineMessages, intlShape } from 'react-intl'; | 6 | import { defineMessages, injectIntl } from 'react-intl'; |
7 | 7 | ||
8 | const messages = defineMessages({ | 8 | const messages = defineMessages({ |
9 | dismiss: { | 9 | dismiss: { |
10 | id: 'infobox.dismiss', | 10 | id: 'infobox.dismiss', |
11 | defaultMessage: '!!!Dismiss', | 11 | defaultMessage: 'Dismiss', |
12 | }, | 12 | }, |
13 | }); | 13 | }); |
14 | 14 | ||
15 | export default | ||
16 | @observer | 15 | @observer |
17 | class Infobox extends Component { | 16 | class Infobox extends Component { |
18 | static propTypes = { | 17 | static propTypes = { |
@@ -38,10 +37,6 @@ class Infobox extends Component { | |||
38 | onSeen: () => null, | 37 | onSeen: () => null, |
39 | }; | 38 | }; |
40 | 39 | ||
41 | static contextTypes = { | ||
42 | intl: intlShape, | ||
43 | }; | ||
44 | |||
45 | state = { | 40 | state = { |
46 | dismissed: false, | 41 | dismissed: false, |
47 | }; | 42 | }; |
@@ -63,7 +58,7 @@ class Infobox extends Component { | |||
63 | onDismiss, | 58 | onDismiss, |
64 | } = this.props; | 59 | } = this.props; |
65 | 60 | ||
66 | const { intl } = this.context; | 61 | const { intl } = this.props; |
67 | 62 | ||
68 | if (this.state.dismissed) { | 63 | if (this.state.dismissed) { |
69 | return null; | 64 | return null; |
@@ -106,3 +101,5 @@ class Infobox extends Component { | |||
106 | ); | 101 | ); |
107 | } | 102 | } |
108 | } | 103 | } |
104 | |||
105 | export default injectIntl(Infobox); | ||