mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-06 15:47:52 +02:00
format & lint
This commit is contained in:
@@ -13,20 +13,18 @@ import { Money } from "../../ui/React/Money";
|
||||
|
||||
import { dialogBoxCreate } from "../../ui/React/DialogBox";
|
||||
|
||||
type IProps = {};
|
||||
|
||||
type IState = {
|
||||
currHp: number;
|
||||
};
|
||||
|
||||
export class HospitalLocation extends React.Component<IProps, IState> {
|
||||
export class HospitalLocation extends React.Component<Record<string, never>, IState> {
|
||||
/**
|
||||
* Stores button styling that sets them all to block display
|
||||
*/
|
||||
btnStyle = { display: "block" };
|
||||
|
||||
constructor(props: IProps) {
|
||||
super(props);
|
||||
constructor() {
|
||||
super({});
|
||||
|
||||
this.getCost = this.getCost.bind(this);
|
||||
this.getHealed = this.getHealed.bind(this);
|
||||
|
||||
@@ -5,7 +5,6 @@ import { dialogBoxCreate } from "../../ui/React/DialogBox";
|
||||
import { GetServer } from "../../Server/AllServers";
|
||||
import { SpecialServers } from "../../Server/data/SpecialServers";
|
||||
|
||||
|
||||
import { CONSTANTS } from "../../Constants";
|
||||
import { Player } from "../../Player";
|
||||
|
||||
@@ -14,7 +13,7 @@ import { Money } from "../../ui/React/Money";
|
||||
/**
|
||||
* Attempt to purchase a TOR router using the button.
|
||||
*/
|
||||
export function purchaseTorRouter(): void {
|
||||
export function purchaseTorRouter(): void {
|
||||
if (Player.hasTorRouter()) {
|
||||
dialogBoxCreate(`You already have a TOR Router!`);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user