This commit is contained in:
Hristo Nedelkov 2024-01-21 15:24:56 +02:00
parent 0d4f8cf94f
commit 086e8956aa
1 changed files with 5 additions and 5 deletions

View File

@ -15,17 +15,17 @@ type OSCardsProps = {
}
const OSCards = ({ selectedOS, handleOSCardClick }: OSCardsProps) => {
return (
<Stack className={styles.osCardsContainer}>
<div className={styles.osCardsContainer}>
{cards.map(card => (
<Stack
<div
key={card.name}
className={`${styles.osCard} ${selectedOS === card.name ? styles.osCardSelected : ''}`}
onPress={() => handleOSCardClick(card.name)}
onClick={() => handleOSCardClick(card.name)}
>
<OSCard key={card.name} icon={card.icon} name={card.name} />
</Stack>
</div>
))}
</Stack>
</div>
)
}