Skip to content

Commit

Permalink
#GameCardIcons
Browse files Browse the repository at this point in the history
- Cleaned up comments for PR.
  • Loading branch information
CheBato committed Dec 25, 2024
1 parent a35205b commit 1e56a50
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ const GameCard: React.FC<IGameCardProps> = ({
};

// upgrade on click
const upgradeClickFunction = (card:ICardData) => {
/*const upgradeClickFunction = (card:ICardData) => {
if(card.selectable){
sendGameMessage(["cardClicked", card.uuid]);
}
}
}*/
const handleClick = onClick ?? defaultClickFunction;
const cardBorderColor = (card: ICardData) => {
if (card.selected) return "yellow";
Expand Down Expand Up @@ -325,8 +325,8 @@ const GameCard: React.FC<IGameCardProps> = ({
sx={{...styles.upgradeIconLayer,
backgroundImage: `url(${(cardUpgradebackground(subcard))})`,
bottom: `${index * 7 + 2}px`,
border: `1px solid ${subcard.selectable ? 'limegreen' : 'transparent'}`}}
onClick={() => upgradeClickFunction(subcard)}
}}
// onClick={() => upgradeClickFunction(subcard)}
>
<Typography sx={styles.upgradeNameStyle}>{subcard.name}</Typography>
</Box>
Expand Down

0 comments on commit 1e56a50

Please sign in to comment.