From 415afe9e7fd518d895c79fa9448564ce6c10c4a3 Mon Sep 17 00:00:00 2001 From: Hristo Nedelkov Date: Tue, 22 Aug 2023 14:05:12 +0300 Subject: [PATCH] Update EmojiPickerDialog.tsx --- src/components/General/EmojiPickerDialog.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/General/EmojiPickerDialog.tsx b/src/components/General/EmojiPickerDialog.tsx index 196b9b65..da0702b8 100644 --- a/src/components/General/EmojiPickerDialog.tsx +++ b/src/components/General/EmojiPickerDialog.tsx @@ -2,25 +2,23 @@ import EmojiPicker, { EmojiStyle, Theme, EmojiClickData, - Emoji, SuggestionMode, Categories, } from 'emoji-picker-react' import { useState } from 'react' -import { Stack, XStack } from 'tamagui' +import { Stack } from 'tamagui' type EmojiStyleType = 'FACEBOOK' | 'APPLE' | 'GOOGLE' | 'TWITTER' | 'NATIVE' function EmojiPickerDialog({ emojiStyle }: { emojiStyle: EmojiStyleType }) { const [selectedEmoji, setSelectedEmoji] = useState('') - +//we can set function onClick(emojiData: EmojiClickData) { setSelectedEmoji(emojiData.unified) } return ( - {/* Your selected Emoji is: {selectedEmoji ? (