Use disabled color for non-buyable augs

This commit is contained in:
nickofolas
2022-05-20 19:39:19 -05:00
parent b71418b08f
commit 38c1388735

View File

@ -219,7 +219,10 @@ export function PurchasableAugmentation(props: IPurchasableAugProps): React.Reac
textOverflow: "ellipsis",
whiteSpace: "nowrap",
overflow: "hidden",
color: props.owned ? Settings.theme.disabled : Settings.theme.primary,
color:
props.owned || !props.parent.canPurchase(props.parent.player, aug)
? Settings.theme.disabled
: Settings.theme.primary,
}}
>
{aug.name}