mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 21:25:47 +01:00
Update FactionRoot.tsx
Run Prettier Manually fixed trailing space for lint test
This commit is contained in:
parent
e05617d9d3
commit
421e7b8c74
@ -104,7 +104,7 @@ function MainPage({ faction, rerender, onAugmentations }: IMainProps): React.Rea
|
||||
|
||||
const canPurchaseSleeves = faction.name === FactionNames.TheCovenant && player.bitNodeN === 10;
|
||||
|
||||
// Note : For future-proofing sake, an assumption is made that player is intended to retain access to his gang if his karma were to somehow increases.
|
||||
// Note : For future-proofing sake, an assumption is made that player is intended to retain access to his gang if his karma were to somehow increases.
|
||||
let isManageGangVisible = GangConstants.Names.includes(faction.name) && player.isAwareOfGang();
|
||||
// karma threshold is only checked at that point, via canAccessGang(). No further check is made.
|
||||
let isManageGangClickable = player.canAccessGang();
|
||||
@ -128,20 +128,20 @@ function MainPage({ faction, rerender, onAugmentations }: IMainProps): React.Rea
|
||||
{isManageGangVisible && (
|
||||
<>
|
||||
<Box>
|
||||
<Paper sx={{ my: 1, p: 1 }}>
|
||||
<Tooltip
|
||||
title={
|
||||
!isManageGangClickable ? <Typography>Unlocked when reaching -54000 karma</Typography> : ""
|
||||
}
|
||||
>
|
||||
<span>
|
||||
<Button onClick={manageGang} disabled={!isManageGangClickable}>{"Manage Gang"}</Button>
|
||||
<Typography>{gangInfo}</Typography>
|
||||
</span>
|
||||
<Paper sx={{ my: 1, p: 1 }}>
|
||||
<Tooltip
|
||||
title={!isManageGangClickable ? <Typography>Unlocked when reaching -54000 karma</Typography> : ""}
|
||||
>
|
||||
<span>
|
||||
<Button onClick={manageGang} disabled={!isManageGangClickable}>
|
||||
{"Manage Gang"}
|
||||
</Button>
|
||||
<Typography>{gangInfo}</Typography>
|
||||
</span>
|
||||
</Tooltip>
|
||||
</Paper>
|
||||
</Paper>
|
||||
</Box>
|
||||
|
||||
|
||||
<CreateGangModal facName={faction.name} open={gangOpen} onClose={() => setGangOpen(false)} />
|
||||
</>
|
||||
)}
|
||||
|
Loading…
Reference in New Issue
Block a user