Remove territory warfare toggle from main gang management page (#849)

This commit is contained in:
Tyasuh 2023-10-17 03:47:54 -04:00 committed by GitHub
parent 1007ce5e68
commit 686d2e2b9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,7 +2,7 @@ import React from "react";
import { GangStats } from "./GangStats";
import { GangMemberList } from "./GangMemberList";
import { useGang } from "./Context";
import { Typography, FormControlLabel, Switch, Tooltip } from "@mui/material";
import { Typography } from "@mui/material";
/** React Component for the subpage that manages gang members, the main page. */
export function ManagementSubpage(): React.ReactElement {
@ -30,26 +30,7 @@ export function ManagementSubpage(): React.ReactElement {
<br />
<GangStats />
<br />
<FormControlLabel
control={
<Switch
checked={gang.territoryWarfareEngaged}
onChange={(event) => (gang.territoryWarfareEngaged = event.target.checked)}
/>
}
label={
<Tooltip
title={
<Typography>
Engaging in Territory Clashes sets your clash chance to 100%. Disengaging will cause your clash chance
to gradually decrease until it reaches 0%. See the "Territory" subpage for more information.
</Typography>
}
>
<Typography>Engage in Territory Clashes</Typography>
</Tooltip>
}
/>
<GangMemberList />
</>
);