optimized image rendering, tweaks to game ui

This commit is contained in:
2022-09-10 15:58:29 -05:00
parent 7505c3316d
commit 5a7830340a
9 changed files with 73 additions and 54 deletions

View File

@@ -37,7 +37,7 @@ export default function CardRow({tier, state, setState}: CardRowProps) {
<p>Remaining: {state.gameboard.deck[typedTier].length}</p>
</div>
{ cards && cards.map((cardData: CardData) => {
return <Card key={v4()} data={cardData} state={state} setState={setState} />
return <Card key={v4()} data={cardData} state={state} setState={setState} collapsed={collapsed} />
})}
</div>
</div>