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}
))}