diff --git a/src/components/Deck.tsx b/src/components/Deck.tsx index a550323..ce4ba89 100644 --- a/src/components/Deck.tsx +++ b/src/components/Deck.tsx @@ -1,4 +1,6 @@ import React from "react" +import Card from "../types/Card" +import CardGroup from "../types/CardGroup" import Deck from "../types/Deck" import Side from "../types/Side" import CardGroupComp from "./CardGroup" @@ -37,6 +39,19 @@ const DeckComp: React.FC = ({deck,side,title,onChange}) => { }} /> )} +
onChange?.( + new Deck( + deck.numDefusers, + ...deck.cardGroups, + new CardGroup(1,new Card("New card",false,false)) + ) + )} + > +
+ Add Group +
+
)