This commit is contained in:
Gavin McDonald
2025-06-26 14:39:04 -04:00
parent 12ae8dd6d8
commit 2c2e93649c
3 changed files with 16 additions and 18 deletions

View File

@@ -7,9 +7,7 @@ import type {} from '@/types';
export default function TarokkaGrid() {
const { gameData } = useAppContext();
const { dmID, cards, settings } = gameData;
const isDM = !!dmID;
const { cards } = gameData;
// map our five Tarokka cards to their proper locations in a 3x3 grid
// common deck cards: left, top, and right
@@ -22,7 +20,7 @@ export default function TarokkaGrid() {
.map(arrangeCards)
.map((card, index) => (
<div key={index} className="aspect-[2/3]}">
{card && <Card dm={isDM} card={card} cardIndex={cardMap[index]} settings={settings} />}
{card && <Card card={card} cardIndex={cardMap[index]} />}
</div>
))}
</div>