From fc05d3fc3efacd02d012bfbdb87f802b8feb301f Mon Sep 17 00:00:00 2001 From: Darren Sisson Date: Thu, 7 Nov 2024 15:05:47 +0000 Subject: [PATCH] fix genshin image load --- src/app/genshin/components/Character.tsx | 9 --------- src/app/genshin/components/Profile.tsx | 9 +-------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/src/app/genshin/components/Character.tsx b/src/app/genshin/components/Character.tsx index 0cd8655..a1aeea9 100755 --- a/src/app/genshin/components/Character.tsx +++ b/src/app/genshin/components/Character.tsx @@ -96,17 +96,8 @@ export default function Character({ data }: { data: Cities }) { currentCharacter={currentCharacter.name} handleTouchEnd={handleTouchEnd} handleTouchStart={handleTouchStart} - setCharacterLoading={setCharacterLoading} /> ))} - {/* {currentCharacter.name && ( - - )} */}
{currentCharacter.name && }
diff --git a/src/app/genshin/components/Profile.tsx b/src/app/genshin/components/Profile.tsx index 8767430..6f767d6 100755 --- a/src/app/genshin/components/Profile.tsx +++ b/src/app/genshin/components/Profile.tsx @@ -5,18 +5,16 @@ export default function Profile({ currentCharacter, handleTouchEnd, handleTouchStart, - setCharacterLoading, charName, }: { currentCharacter: string; handleTouchEnd: (e: React.TouchEvent) => void; handleTouchStart: (e: React.TouchEvent) => void; - setCharacterLoading: React.Dispatch>; charName: string; }) { return (
handleTouchEnd(e)} @@ -33,11 +31,6 @@ export default function Profile({ alt={charName} fill={true} priority={currentCharacter == charName} - // onLoad={(e) => { - // setCharacterLoading(false); - // e.currentTarget.classList.add("animate-slide-in"); - // e.currentTarget.classList.remove("opacity-0"); - // }} placeholder="blur" />