diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2021-10-06 22:59:03 +0530 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2021-10-06 22:59:03 +0530 |
commit | 5fd7cd12cc62ceb6c4d654b3cb3b536412ed1216 (patch) | |
tree | 10cea6c608baea3481595ed9eb7be63ef03ca6c4 /src/components/ui/InfoBar.js | |
parent | Bumped up version to: 5.6.2 (hotfix) (diff) | |
parent | 5.6.3-nightly.25 [skip ci] (diff) | |
download | ferdium-app-5fd7cd12cc62ceb6c4d654b3cb3b536412ed1216.tar.gz ferdium-app-5fd7cd12cc62ceb6c4d654b3cb3b536412ed1216.tar.zst ferdium-app-5fd7cd12cc62ceb6c4d654b3cb3b536412ed1216.zip |
Merge branch 'nightly' into release
Diffstat (limited to 'src/components/ui/InfoBar.js')
-rw-r--r-- | src/components/ui/InfoBar.js | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/components/ui/InfoBar.js b/src/components/ui/InfoBar.js index bd2af2296..dc6be10da 100644 --- a/src/components/ui/InfoBar.js +++ b/src/components/ui/InfoBar.js | |||
@@ -3,23 +3,21 @@ 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'; | ||
9 | import Appear from './effects/Appear'; | 8 | import Appear from './effects/Appear'; |
10 | 9 | ||
11 | const messages = defineMessages({ | 10 | const messages = defineMessages({ |
12 | hide: { | 11 | hide: { |
13 | id: 'infobar.hide', | 12 | id: 'infobar.hide', |
14 | defaultMessage: '!!!Hide', | 13 | defaultMessage: 'Hide', |
15 | }, | 14 | }, |
16 | }); | 15 | }); |
17 | 16 | ||
18 | export default | ||
19 | @observer | 17 | @observer |
20 | class InfoBar extends Component { | 18 | class InfoBar extends Component { |
21 | static propTypes = { | 19 | static propTypes = { |
22 | // eslint-disable-next-line | 20 | // eslint-disable-next-line react/forbid-prop-types |
23 | children: PropTypes.any.isRequired, | 21 | children: PropTypes.any.isRequired, |
24 | onClick: PropTypes.func, | 22 | onClick: PropTypes.func, |
25 | type: PropTypes.string, | 23 | type: PropTypes.string, |
@@ -42,10 +40,6 @@ class InfoBar extends Component { | |||
42 | onHide: () => null, | 40 | onHide: () => null, |
43 | }; | 41 | }; |
44 | 42 | ||
45 | static contextTypes = { | ||
46 | intl: intlShape, | ||
47 | }; | ||
48 | |||
49 | render() { | 43 | render() { |
50 | const { | 44 | const { |
51 | children, | 45 | children, |
@@ -59,7 +53,7 @@ class InfoBar extends Component { | |||
59 | onHide, | 53 | onHide, |
60 | } = this.props; | 54 | } = this.props; |
61 | 55 | ||
62 | const { intl } = this.context; | 56 | const { intl } = this.props; |
63 | 57 | ||
64 | let transitionName = 'slideUp'; | 58 | let transitionName = 'slideUp'; |
65 | if (position === 'top') { | 59 | if (position === 'top') { |
@@ -103,3 +97,5 @@ class InfoBar extends Component { | |||
103 | ); | 97 | ); |
104 | } | 98 | } |
105 | } | 99 | } |
100 | |||
101 | export default injectIntl(InfoBar); | ||