mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-23 09:42:53 +02:00
lint
This commit is contained in:
@@ -22,7 +22,7 @@ export function Augmentations(props: IProps): React.ReactElement {
|
||||
const [augmentation, setAugmentation] = useState("Augmented Targeting I");
|
||||
|
||||
function setAugmentationDropdown(event: SelectChangeEvent<string>): void {
|
||||
setAugmentation(event.target.value as string);
|
||||
setAugmentation(event.target.value );
|
||||
}
|
||||
function queueAug(): void {
|
||||
props.player.queueAugmentation(augmentation);
|
||||
|
||||
@@ -15,7 +15,7 @@ import { CodingContractTypes } from "../../CodingContracts";
|
||||
export function CodingContracts(): React.ReactElement {
|
||||
const [codingcontract, setCodingcontract] = useState("Find Largest Prime Factor");
|
||||
function setCodingcontractDropdown(event: SelectChangeEvent<string>): void {
|
||||
setCodingcontract(event.target.value as string);
|
||||
setCodingcontract(event.target.value );
|
||||
}
|
||||
|
||||
function specificContract(): void {
|
||||
|
||||
@@ -18,7 +18,7 @@ const bigNumber = 1e12;
|
||||
export function Companies(): React.ReactElement {
|
||||
const [company, setCompany] = useState(FactionNames.ECorp as string);
|
||||
function setCompanyDropdown(event: SelectChangeEvent<string>): void {
|
||||
setCompany(event.target.value as string);
|
||||
setCompany(event.target.value );
|
||||
}
|
||||
function resetCompanyRep(): void {
|
||||
AllCompanies[company].playerReputation = 0;
|
||||
|
||||
@@ -29,7 +29,7 @@ export function Factions(props: IProps): React.ReactElement {
|
||||
const [faction, setFaction] = useState(FactionNames.Illuminati as string);
|
||||
|
||||
function setFactionDropdown(event: SelectChangeEvent<string>): void {
|
||||
setFaction(event.target.value as string);
|
||||
setFaction(event.target.value );
|
||||
}
|
||||
|
||||
function receiveInvite(): void {
|
||||
|
||||
@@ -19,7 +19,7 @@ interface IProps {
|
||||
export function Programs(props: IProps): React.ReactElement {
|
||||
const [program, setProgram] = useState("NUKE.exe");
|
||||
function setProgramDropdown(event: SelectChangeEvent<string>): void {
|
||||
setProgram(event.target.value as string);
|
||||
setProgram(event.target.value );
|
||||
}
|
||||
function addProgram(): void {
|
||||
if (!props.player.hasProgram(program)) {
|
||||
|
||||
@@ -6,20 +6,13 @@ import AccordionDetails from "@mui/material/AccordionDetails";
|
||||
import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
|
||||
|
||||
import Typography from "@mui/material/Typography";
|
||||
import { IPlayer } from "../../PersonObjects/IPlayer";
|
||||
import { saveObject } from "../../SaveObject";
|
||||
import { SnackbarEvents, ToastVariant } from "../../ui/React/Snackbar";
|
||||
import { Upload } from "@mui/icons-material";
|
||||
import { Button } from "@mui/material";
|
||||
import { OptionSwitch } from "../../ui/React/OptionSwitch";
|
||||
|
||||
// Update as additional BitNodes get implemented
|
||||
|
||||
interface IProps {
|
||||
player: IPlayer;
|
||||
}
|
||||
|
||||
export function SaveFile(props: IProps): React.ReactElement {
|
||||
export function SaveFile(): React.ReactElement {
|
||||
const importInput = useRef<HTMLInputElement>(null);
|
||||
const [saveFile, setSaveFile] = useState("");
|
||||
const [restoreScripts, setRestoreScripts] = useState(true);
|
||||
|
||||
@@ -15,7 +15,7 @@ import MenuItem from "@mui/material/MenuItem";
|
||||
export function Servers(): React.ReactElement {
|
||||
const [server, setServer] = useState("home");
|
||||
function setServerDropdown(event: SelectChangeEvent<string>): void {
|
||||
setServer(event.target.value as string);
|
||||
setServer(event.target.value );
|
||||
}
|
||||
function rootServer(): void {
|
||||
const s = GetServer(server);
|
||||
|
||||
Reference in New Issue
Block a user