Upgrade emoji-mart (#6848)

This commit is contained in:
Tom Moor
2024-04-25 19:39:32 -04:00
committed by GitHub
parent bf848f3a2f
commit bc64f1f2f7
3 changed files with 12 additions and 19 deletions

View File

@@ -27,7 +27,7 @@ const supportedLocales = [
"hi",
"it",
"ja",
"kr",
"ko",
"nl",
"pl",
"pt",
@@ -197,14 +197,7 @@ function EmojiPicker({
)}
<PickerStyles ref={pickerRef}>
<Picker
// https://github.com/missive/emoji-mart/issues/800
locale={
locale === "ko"
? "kr"
: supportedLocales.includes(locale)
? locale
: "en"
}
locale={supportedLocales.includes(locale) ? locale : "en"}
data={data}
onEmojiSelect={handleEmojiChange}
theme={pickerTheme}