Remove unneeded container for icon picker
This commit is contained in:
parent
b997cde0d8
commit
d7f7e52032
1 changed files with 0 additions and 20 deletions
|
@ -1,20 +0,0 @@
|
|||
import { connect } from 'react-redux';
|
||||
import IconPickerDropdown from '../components/icon_picker_dropdown';
|
||||
import { useEmoji } from '../../../actions/emojis';
|
||||
|
||||
const mapStateToProps = state => ({
|
||||
frequentlyUsedEmojis: '',
|
||||
});
|
||||
|
||||
const mapDispatchToProps = (dispatch, { onPickEmoji }) => ({
|
||||
|
||||
onPickEmoji: emoji => {
|
||||
dispatch(useEmoji(emoji)); // eslint-disable-line react-hooks/rules-of-hooks
|
||||
|
||||
if (onPickEmoji) {
|
||||
onPickEmoji(emoji);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(IconPickerDropdown);
|
Loading…
Reference in a new issue