From 1614335558a2ae5a95eb3f4bf1ec34ad4bf86b10 Mon Sep 17 00:00:00 2001 From: Jerome Hardaway Date: Thu, 8 Feb 2024 23:06:08 -0500 Subject: [PATCH] fixes eslint issue --- src/components/EmojiRain/index.tsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/components/EmojiRain/index.tsx b/src/components/EmojiRain/index.tsx index 8daf82bb3..2ed522a72 100644 --- a/src/components/EmojiRain/index.tsx +++ b/src/components/EmojiRain/index.tsx @@ -1,9 +1,17 @@ +import React from 'react'; + const EmojiRain = () => { + // Generate unique IDs for each emoji + const emojis = Array.from({ length: 100 }).map((_, index) => ({ + id: `emoji-${index}-${new Date().getTime()}-${Math.random()}`, // This generates a unique ID + emoji: '🎖️', + })); + return (
- {Array.from({ length: 100 }).map((_, index) => ( + {emojis.map((emojiObj) => (
{ animation: "fall 5s linear forwards", }} > - 🎖️ + {emojiObj.emoji}
))}