From 870b94e974db3f700493e85bf135a907f63ecbcf Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sun, 15 Dec 2024 13:05:03 +0000 Subject: [PATCH] Fix TypeScript errors in MemeAnimation Resolved TypeScript errors in `MemeAnimation.tsx` related to type assignments for animation properties. Adjusted the types to ensure compatibility with the expected string types. [skip gpt_engineer] --- .../game/animations/MemeAnimation.tsx | 80 +++++++++---------- 1 file changed, 36 insertions(+), 44 deletions(-) diff --git a/src/components/game/animations/MemeAnimation.tsx b/src/components/game/animations/MemeAnimation.tsx index 1dfd2d7..76b9f2b 100644 --- a/src/components/game/animations/MemeAnimation.tsx +++ b/src/components/game/animations/MemeAnimation.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { motion } from 'framer-motion'; +import { motion, AnimatePresence } from 'framer-motion'; interface MemeSymbol { id: number; @@ -54,28 +54,20 @@ export const MemeAnimation = ({ className = '' }: { className?: string }) => { {/* Meme symbols with viral spread effect */} - {memeSymbols.map((meme) => ( - + {memeSymbols.map((meme) => ( + { `${meme.y + (Math.random() * 40 - 20)}%`, `${meme.y + (Math.random() * 60 - 30)}%` ], - transition: { - delay: meme.delay + 0.3, - duration: 2, - repeat: Infinity, - repeatType: "reverse", - ease: "easeInOut" - } - } - ]} - > - {meme.symbol} - - {/* Echo effect for viral spread visualization */} - {meme.symbol} + + {/* Echo effect for viral spread visualization */} + + {meme.symbol} + - - ))} + ))} + {/* Floating engagement indicators */} {[...Array(5)].map((_, i) => (