format & lint

This commit is contained in:
Snarling
2022-09-13 12:37:24 -04:00
parent c9ee938bc6
commit 91a69d7d8f
39 changed files with 59 additions and 154 deletions
+3 -5
View File
@@ -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);
+1 -2
View File
@@ -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;