Skip to content

Commit

Permalink
explicitly disable card on selectable
Browse files Browse the repository at this point in the history
  • Loading branch information
danbastin committed Mar 4, 2025
1 parent fc2b28b commit 72e5ece
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app/_components/Lobby/Deck/Deck.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ const Deck: React.FC = () => {
mt: '0.3rem'
}
};

return (
<Box sx={{ width:'100%', height:'100%', overflowY: 'scroll' }}>
<Card sx={styles.cardStyle}>
Expand Down
2 changes: 1 addition & 1 deletion src/app/_components/_sharedcomponents/Cards/GameCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const GameCard: React.FC<IGameCardProps> = ({
const { sendGameMessage, connectedPlayer, getConnectedPlayerPrompt, distributionPromptData } = useGame();
const { clearPopups } = usePopup();

if (!card.selectable) {
if (card.selectable === false) {
disabled = true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ const LeaderBaseCard: React.FC<ILeaderBaseCardProps> = ({
return null
}

if (card.selectable === false) {
disabled = true;
}

const handlePreviewOpen = (event: React.MouseEvent<HTMLElement>) => {
const target = event.currentTarget;
if (isDeployed) return;
Expand Down

0 comments on commit 72e5ece

Please sign in to comment.