feat: custom emoji
This commit is contained in:
parent
481d6a1447
commit
71d4420604
46 changed files with 885 additions and 176 deletions
|
|
@ -254,7 +254,12 @@ export default function PostContent({
|
|||
opening the emoji picker drawer causes an issue,
|
||||
the emoji I tap isn't the one that gets inserted. */}
|
||||
{!isTouchDevice() && (
|
||||
<EmojiPickerDialog onEmojiClick={(emoji) => textareaRef.current?.insertText(emoji)}>
|
||||
<EmojiPickerDialog
|
||||
onEmojiClick={(emoji) => {
|
||||
if (!emoji) return
|
||||
textareaRef.current?.insertEmoji(emoji)
|
||||
}}
|
||||
>
|
||||
<Button variant="ghost" size="icon">
|
||||
<Smile />
|
||||
</Button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue