From 27a2dd567e837a4ba07e3ed07a7a5eb5d8129d89 Mon Sep 17 00:00:00 2001 From: Hezekiel Tamire Date: Fri, 29 Mar 2024 20:21:09 +0300 Subject: [PATCH] replaced array index usage by headerEmoji.index --- src/components/EmojiPicker/CategoryShortcutBar.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/EmojiPicker/CategoryShortcutBar.tsx b/src/components/EmojiPicker/CategoryShortcutBar.tsx index 2fbe4efca6b7..25c1ff85f6a3 100644 --- a/src/components/EmojiPicker/CategoryShortcutBar.tsx +++ b/src/components/EmojiPicker/CategoryShortcutBar.tsx @@ -16,12 +16,11 @@ function CategoryShortcutBar({onPress, headerEmojis}: CategoryShortcutBarProps) const styles = useThemeStyles(); return ( - {headerEmojis.map((headerEmoji, i) => ( + {headerEmojis.map((headerEmoji) => ( onPress(headerEmoji.index)} - // eslint-disable-next-line react/no-array-index-key - key={`categoryShortcut${i}`} + key={`categoryShortcut${headerEmoji.index}`} code={headerEmoji.code} /> ))}