diff --git a/app/containers/EmojiPicker/EmojiCategory.tsx b/app/containers/EmojiPicker/EmojiCategory.tsx index f5fed80de..fc8188982 100644 --- a/app/containers/EmojiPicker/EmojiCategory.tsx +++ b/app/containers/EmojiPicker/EmojiCategory.tsx @@ -47,7 +47,7 @@ const EmojiCategory = React.memo(({ baseUrl, onEmojiSelected, emojis, width, tab return ( (item && item.isCustom && item.content) || item} data={emojis} diff --git a/app/containers/EmojiPicker/Footer.tsx b/app/containers/EmojiPicker/Footer.tsx index 1d0a139c7..cd602b621 100644 --- a/app/containers/EmojiPicker/Footer.tsx +++ b/app/containers/EmojiPicker/Footer.tsx @@ -7,11 +7,11 @@ import { CustomIcon } from '../CustomIcon'; import styles from './styles'; import { IFooterProps } from './interfaces'; -const Footer = React.memo(({ onBackspacePressed }: IFooterProps) => { +const Footer = React.memo(({ onSearchPressed, onBackspacePressed }: IFooterProps) => { const { colors } = useTheme(); return ( - console.log('Search!')} style={styles.footerButtonsContainer}> + diff --git a/app/containers/EmojiPicker/index.tsx b/app/containers/EmojiPicker/index.tsx index 2e563c927..06075305a 100644 --- a/app/containers/EmojiPicker/index.tsx +++ b/app/containers/EmojiPicker/index.tsx @@ -56,7 +56,7 @@ const EmojiPicker = React.memo(({ onItemClicked, tabEmojiStyle }: IEmojiPickerPr const content = emoji; _addFrequentlyUsed({ content, isCustom: false }); const shortname = `:${emoji}:`; - onItemClicked(EventTypes.EMOJI_PRESSED, shortnameToUnicode(shortname), shortname); + onItemClicked(EventTypes.EMOJI_PRESSED, shortnameToUnicode(shortname)); } } catch (e) { log(e); @@ -131,8 +131,6 @@ const EmojiPicker = React.memo(({ onItemClicked, tabEmojiStyle }: IEmojiPickerPr ); }; - const onBackspacePressed = () => onItemClicked(EventTypes.BACKSPACE_PRESSED); - if (!show) { return null; } @@ -154,7 +152,10 @@ const EmojiPicker = React.memo(({ onItemClicked, tabEmojiStyle }: IEmojiPickerPr : renderCategory(tab.category, i, tab.tabLabel, tabsCount) )} -