diff options
author | Markus Hatvan <markus_hatvan@aon.at> | 2021-09-13 14:45:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-13 14:45:46 +0200 |
commit | 537697a6e9757f118d09d9e76362ba1ff617e2c6 (patch) | |
tree | bc55447115e385137684e84697a8c15d2199b8d5 /src/components/ui/InfoBar.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/InfoBar.js')
-rw-r--r-- | src/components/ui/InfoBar.js | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/components/ui/InfoBar.js b/src/components/ui/InfoBar.js index bd2af2296..f5cbad48b 100644 --- a/src/components/ui/InfoBar.js +++ b/src/components/ui/InfoBar.js | |||
@@ -3,7 +3,7 @@ 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 | // import { oneOrManyChildElements } from '../../prop-types'; | 8 | // import { oneOrManyChildElements } from '../../prop-types'; |
9 | import Appear from './effects/Appear'; | 9 | import Appear from './effects/Appear'; |
@@ -11,11 +11,10 @@ import Appear from './effects/Appear'; | |||
11 | const messages = defineMessages({ | 11 | const messages = defineMessages({ |
12 | hide: { | 12 | hide: { |
13 | id: 'infobar.hide', | 13 | id: 'infobar.hide', |
14 | defaultMessage: '!!!Hide', | 14 | defaultMessage: 'Hide', |
15 | }, | 15 | }, |
16 | }); | 16 | }); |
17 | 17 | ||
18 | export default | ||
19 | @observer | 18 | @observer |
20 | class InfoBar extends Component { | 19 | class InfoBar extends Component { |
21 | static propTypes = { | 20 | static propTypes = { |
@@ -42,10 +41,6 @@ class InfoBar extends Component { | |||
42 | onHide: () => null, | 41 | onHide: () => null, |
43 | }; | 42 | }; |
44 | 43 | ||
45 | static contextTypes = { | ||
46 | intl: intlShape, | ||
47 | }; | ||
48 | |||
49 | render() { | 44 | render() { |
50 | const { | 45 | const { |
51 | children, | 46 | children, |
@@ -59,7 +54,7 @@ class InfoBar extends Component { | |||
59 | onHide, | 54 | onHide, |
60 | } = this.props; | 55 | } = this.props; |
61 | 56 | ||
62 | const { intl } = this.context; | 57 | const { intl } = this.props; |
63 | 58 | ||
64 | let transitionName = 'slideUp'; | 59 | let transitionName = 'slideUp'; |
65 | if (position === 'top') { | 60 | if (position === 'top') { |
@@ -103,3 +98,5 @@ class InfoBar extends Component { | |||
103 | ); | 98 | ); |
104 | } | 99 | } |
105 | } | 100 | } |
101 | |||
102 | export default injectIntl(InfoBar); | ||