Skip to content

Commit

Permalink
Add colon around custom emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
ealush committed Nov 6, 2023
1 parent 7a367d0 commit 57aa181
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/PickerDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ export default function PickerDemo() {
<div>
<div className={styles.PickerDemo}>
<Picker
onEmojiClick={(emoji) => setTextareaValue((tv) => tv + emoji.emoji)}
onEmojiClick={(emoji) =>
setTextareaValue(
(tv) => tv + (emoji?.isCustom ? `:${emoji.emoji}:` : emoji.emoji)
)
}
key={now}
autoFocusSearch={false}
{...pickerProps}
Expand Down

0 comments on commit 57aa181

Please sign in to comment.