Remove unneeded container for icon picker

This commit is contained in:
Sean King 2020-10-21 15:17:00 -06:00
parent b997cde0d8
commit d7f7e52032
No known key found for this signature in database
GPG key ID: 510C52BACD6E7257

View file

@ -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);