Fixed issue in EmojiPickerPopover with intl

• Fixed:
- issue in EmojiPickerPopover with intl
This commit is contained in:
mgabdev 2020-08-20 10:30:11 -05:00
parent 3828fbbeef
commit 5cb539061b
1 changed files with 5 additions and 4 deletions

View File

@ -198,9 +198,9 @@ EmojiPickerMenu.propTypes = {
onPick: PropTypes.func.isRequired,
arrowOffsetLeft: PropTypes.string,
arrowOffsetTop: PropTypes.string,
intl: PropTypes.object.isRequired,
skinTone: PropTypes.number.isRequired,
onSkinTone: PropTypes.func.isRequired,
intl: PropTypes.object.isRequired,
}
EmojiPickerMenu.defaultProps = {
@ -208,8 +208,6 @@ EmojiPickerMenu.defaultProps = {
frequentlyUsedEmojis: [],
}
injectIntl(EmojiPickerMenu)
class EmojiPickerPopover extends ImmutablePureComponent {
state = {
@ -237,6 +235,7 @@ class EmojiPickerPopover extends ImmutablePureComponent {
render () {
const {
intl,
onPickEmoji,
onSkinTone,
skinTone,
@ -254,6 +253,7 @@ class EmojiPickerPopover extends ImmutablePureComponent {
onClose={this.onHideDropdown}
>
<EmojiPickerMenu
intl={intl}
customEmojis={customEmojis}
loading={loading}
onClose={this.onHideDropdown}
@ -298,6 +298,7 @@ EmojiPickerPopover.propTypes = {
skinTone: PropTypes.number.isRequired,
onClosePopover: PropTypes.func.isRequired,
isXS: PropTypes.bool,
intl: PropTypes.object.isRequired,
}
export default connect(mapStateToProps, mapDispatchToProps)(EmojiPickerPopover)
export default injectIntl(connect(mapStateToProps, mapDispatchToProps)(EmojiPickerPopover))