Skip to content

Commit

Permalink
Upgrade emoji-mart (#6848)
Browse files Browse the repository at this point in the history
  • Loading branch information
tommoor committed Apr 25, 2024
1 parent bf848f3 commit bc64f1f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 19 deletions.
11 changes: 2 additions & 9 deletions app/components/EmojiPicker/index.tsx
Expand Up @@ -27,7 +27,7 @@ const supportedLocales = [
"hi",
"it",
"ja",
"kr",
"ko",
"nl",
"pl",
"pt",
Expand Down Expand Up @@ -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}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -60,7 +60,7 @@
"@dnd-kit/core": "^6.1.0",
"@dnd-kit/modifiers": "^6.0.1",
"@dnd-kit/sortable": "^7.0.2",
"@emoji-mart/data": "^1.0.6",
"@emoji-mart/data": "^1.2.1",
"@emoji-mart/react": "^1.1.1",
"@fortawesome/fontawesome-svg-core": "^6.5.2",
"@fortawesome/free-solid-svg-icons": "^6.5.2",
Expand Down Expand Up @@ -104,7 +104,7 @@
"diff": "^5.2.0",
"dotenv": "^16.4.5",
"email-providers": "^1.14.0",
"emoji-mart": "^5.5.2",
"emoji-mart": "^5.6.0",
"emoji-regex": "^10.3.0",
"es6-error": "^4.1.1",
"fetch-retry": "^5.0.6",
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Expand Up @@ -1297,10 +1297,10 @@
dependencies:
tslib "^2.0.0"

"@emoji-mart/data@^1.0.6":
version "1.1.2"
resolved "https://registry.yarnpkg.com/@emoji-mart/data/-/data-1.1.2.tgz#777c976f8f143df47cbb23a7077c9ca9fe5fc513"
integrity "sha1-d3yXb48UPfR8uyOnB3ycqf5fxRM= sha512-1HP8BxD2azjqWJvxIaWAMyTySeZY0Osr83ukYjltPVkNXeJvTz7yDrPLBtnrD5uqJ3tg4CcLuuBW09wahqL/fg=="
"@emoji-mart/data@^1.2.1":
version "1.2.1"
resolved "https://registry.yarnpkg.com/@emoji-mart/data/-/data-1.2.1.tgz#0ad70c662e3bc603e23e7d98413bd1e64c4fcb6c"
integrity sha512-no2pQMWiBy6gpBEiqGeU77/bFejDqUTRY7KX+0+iur13op3bqUsXdnwoZs6Xb1zbv0gAj5VvS1PWoUUckSr5Dw==

"@emoji-mart/react@^1.1.1":
version "1.1.1"
Expand Down Expand Up @@ -6291,10 +6291,10 @@ emittery@^0.13.1:
resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.13.1.tgz#c04b8c3457490e0847ae51fced3af52d338e3dad"
integrity "sha1-wEuMNFdJDghHrlH87Tr1LTOOPa0= sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ=="

emoji-mart@^5.5.2:
version "5.5.2"
resolved "https://registry.yarnpkg.com/emoji-mart/-/emoji-mart-5.5.2.tgz#3ddbaf053139cf4aa217650078bc1c50ca8381af"
integrity "sha1-PduvBTE5z0qiF2UAeLwcUMqDga8= sha512-Sqc/nso4cjxhOwWJsp9xkVm8OF5c+mJLZJFoFfzRuKO+yWiN7K8c96xmtughYb0d/fZ8UC6cLIQ/p4BR6Pv3/A=="
emoji-mart@^5.6.0:
version "5.6.0"
resolved "https://registry.yarnpkg.com/emoji-mart/-/emoji-mart-5.6.0.tgz#71b3ed0091d3e8c68487b240d9d6d9a73c27f023"
integrity sha512-eJp3QRe79pjwa+duv+n7+5YsNhRcMl812EcFVwrnRvYKoNPoQb5qxU8DG6Bgwji0akHdp6D4Ln6tYLG58MFSow==

emoji-regex@*, emoji-regex@^10.3.0:
version "10.3.0"
Expand Down

0 comments on commit bc64f1f

Please sign in to comment.