Streamlining GangKarmaRequirement constant

As suggested by phyzical :

The GangKarmaRequirement const was declared locally in the PlayerObjectGangMethod.ts file.

It's now part of the GangConstants object in the gang/data/constant.ts file.

Allowing it to be referenced in the FactionRoot.tsx tooltip.
This commit is contained in:
borisflagell
2022-04-23 15:55:15 +02:00
parent ff3493e184
commit 90dc8bbc3a
3 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ function MainPage({ faction, rerender, onAugmentations }: IMainProps): React.Rea
<Box>
<Paper sx={{ my: 1, p: 1 }}>
<Tooltip
title={!isManageGangClickable ? <Typography>Unlocked when reaching -54000 karma</Typography> : ""}
title={!isManageGangClickable ? <Typography>Unlocked when reaching {GangConstants.GangKarmaRequirement} karma</Typography> : ""}
>
<span>
<Button onClick={manageGang} disabled={!isManageGangClickable}>