redraw cards
This commit is contained in:
@@ -17,9 +17,17 @@ type CardProps = {
|
||||
position: Layout;
|
||||
settings: Settings;
|
||||
flipAction: () => void;
|
||||
redrawAction: () => void;
|
||||
};
|
||||
|
||||
export default function Card({ dm, card, position, settings, flipAction }: CardProps) {
|
||||
export default function Card({
|
||||
dm,
|
||||
card,
|
||||
position,
|
||||
settings,
|
||||
flipAction,
|
||||
redrawAction,
|
||||
}: CardProps) {
|
||||
const [tooltip, setTooltip] = useState<React.ReactNode>(null);
|
||||
const { aria, flipped } = card;
|
||||
|
||||
@@ -71,8 +79,8 @@ export default function Card({ dm, card, position, settings, flipAction }: CardP
|
||||
/>
|
||||
{dm && !flipped && (
|
||||
<StackTheDeck
|
||||
onRedo={() => console.log('Redo')}
|
||||
onPick={() => console.log('Pick')}
|
||||
onRedraw={redrawAction}
|
||||
onSelect={() => console.log('Pick')}
|
||||
onHover={setTooltip}
|
||||
/>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user