From 75e8fd4477dff413931ddd5cdfcd14597d8bca31 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 22 Jan 2024 21:21:05 +0000 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20(deps)=20node-emoji@2=20?= =?UTF-8?q?=F0=9F=92=A5=20[skip=20ci]=20(#1119)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/design-system/package.json | 2 +- packages/design-system/src/custom/Emoji/Emoji.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/design-system/package.json b/packages/design-system/package.json index d61b09608..3f7d1dab8 100644 --- a/packages/design-system/package.json +++ b/packages/design-system/package.json @@ -90,7 +90,7 @@ "@radix-ui/react-visually-hidden": "1.0.3", "@stitches/react": "1.3.1-1", "emoji-regex": "10.3.0", - "node-emoji": "1.11.0", + "node-emoji": "2.1.3", "smoothscroll-polyfill": "0.4.4" }, "devDependencies": { diff --git a/packages/design-system/src/custom/Emoji/Emoji.tsx b/packages/design-system/src/custom/Emoji/Emoji.tsx index 360607560..373bd5b9e 100644 --- a/packages/design-system/src/custom/Emoji/Emoji.tsx +++ b/packages/design-system/src/custom/Emoji/Emoji.tsx @@ -1,4 +1,4 @@ -import nodeEmoji from 'node-emoji' +import { find as findEmoji } from 'node-emoji' import { styled } from '../../lib/stitches.config' // import { Box } from '../../components' @@ -34,7 +34,7 @@ const EmojiHtml = ({ emoji, label, margin }) => { } const Emoji = ({ character, margin = false }) => { - const emojiFound = nodeEmoji.find(character) + const emojiFound = findEmoji(character) if (emojiFound === undefined) { return (