Fixed issue in EmojiPickerPopover with intl
• Fixed: - issue in EmojiPickerPopover with intl
This commit is contained in:
parent
3828fbbeef
commit
5cb539061b
|
@ -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))
|
Loading…
Reference in New Issue