madeleine-patience / Considerate-Cat-Version-2-With-Next

Considerate Cat Version 2
https://conisderate-cat-version-2.vercel.app
2 stars 0 forks source link

Combine SingleTarotCard and SingleTarotCardWithFlip #27

Open madeleine-patience opened 2 months ago

madeleine-patience commented 2 months ago

Would it be worth it to combine these two components?

SIngleTarotCard.tsx SingleTarotCardWithFlip.tsx

arthvadrr commented 2 months ago

Yes, it makes sense to use a single component for the cards.

The SingleTarotCard is essentially a Box that takes an image and additional styles, and SingleTarotCardWithFlip isn't significantly more complex. Combining them will also ensure consistent styles and functionality across the site, regardless of where the component is used.