mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-23 08:03:48 +01:00
fix create gang not working.
This commit is contained in:
parent
91c7ae53ef
commit
34313e8100
@ -4,16 +4,19 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { removePopup } from "../../ui/React/createPopup";
|
import { removePopup } from "../../ui/React/createPopup";
|
||||||
import { StdButton } from "../../ui/React/StdButton";
|
import { StdButton } from "../../ui/React/StdButton";
|
||||||
import { use } from "../../ui/Context";
|
import { IRouter } from "../../ui/Router";
|
||||||
|
import { IPlayer } from "../../PersonObjects/IPlayer";
|
||||||
|
|
||||||
interface ICreateGangPopupProps {
|
interface ICreateGangPopupProps {
|
||||||
popupId: string;
|
popupId: string;
|
||||||
facName: string;
|
facName: string;
|
||||||
|
player: IPlayer;
|
||||||
|
router: IRouter;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CreateGangPopup(props: ICreateGangPopupProps): React.ReactElement {
|
export function CreateGangPopup(props: ICreateGangPopupProps): React.ReactElement {
|
||||||
const player = use.Player();
|
const player = props.player;
|
||||||
const router = use.Router();
|
const router = props.router;
|
||||||
const combatGangText =
|
const combatGangText =
|
||||||
"This is a COMBAT gang. Members in this gang will have different tasks than HACKING gangs. " +
|
"This is a COMBAT gang. Members in this gang will have different tasks than HACKING gangs. " +
|
||||||
"Compared to hacking gangs, progression with combat gangs can be more difficult as territory management " +
|
"Compared to hacking gangs, progression with combat gangs can be more difficult as territory management " +
|
||||||
|
@ -80,6 +80,8 @@ export function FactionRoot(props: IProps): React.ReactElement {
|
|||||||
createPopup(popupId, CreateGangPopup, {
|
createPopup(popupId, CreateGangPopup, {
|
||||||
popupId: popupId,
|
popupId: popupId,
|
||||||
facName: faction.name,
|
facName: faction.name,
|
||||||
|
player: player,
|
||||||
|
router: router,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user