Skip to content

Commit

Permalink
Enhance Review2024Card component: conditionally render LottiePlayer b…
Browse files Browse the repository at this point in the history
…ased on modal state.
  • Loading branch information
joao-vasconcelos committed Jan 11, 2025
1 parent c4c188e commit 43dfece
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions frontend/components/review-2024/Review2024Card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,13 @@ export function Review2024Card({ cardData, isFirstChild, isLastChild }: Props) {

{cardData.content.lottie_src && (
<div className={styles.contentLottie}>
<LottiePlayer
path={cardData.content.lottie_src}
loop
play
/>
{isOpen && (
<LottiePlayer
path={cardData.content.lottie_src}
loop
play
/>
)}
</div>
)}

Expand Down

0 comments on commit 43dfece

Please sign in to comment.