mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-03-22 10:12:30 +01:00
Fix corp not moving
This commit is contained in:
src
@ -4,10 +4,12 @@ import { IPlayer } from "../../PersonObjects/IPlayer";
|
|||||||
import { removePopup } from "../../ui/React/createPopup";
|
import { removePopup } from "../../ui/React/createPopup";
|
||||||
import { Money } from "../../ui/React/Money";
|
import { Money } from "../../ui/React/Money";
|
||||||
import { dialogBoxCreate } from "../../../utils/DialogBox";
|
import { dialogBoxCreate } from "../../../utils/DialogBox";
|
||||||
|
import { IRouter } from "../../ui/Router";
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
player: IPlayer;
|
player: IPlayer;
|
||||||
popupId: string;
|
popupId: string;
|
||||||
|
router: IRouter;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CreateCorporationPopup(props: IProps): React.ReactElement {
|
export function CreateCorporationPopup(props: IProps): React.ReactElement {
|
||||||
@ -40,6 +42,7 @@ export function CreateCorporationPopup(props: IProps): React.ReactElement {
|
|||||||
"and manage your company in the City.",
|
"and manage your company in the City.",
|
||||||
);
|
);
|
||||||
removePopup(props.popupId);
|
removePopup(props.popupId);
|
||||||
|
props.router.toCorporation();
|
||||||
}
|
}
|
||||||
|
|
||||||
function seed(): void {
|
function seed(): void {
|
||||||
@ -55,6 +58,7 @@ export function CreateCorporationPopup(props: IProps): React.ReactElement {
|
|||||||
"You can visit and manage your company in the City.",
|
"You can visit and manage your company in the City.",
|
||||||
);
|
);
|
||||||
removePopup(props.popupId);
|
removePopup(props.popupId);
|
||||||
|
props.router.toCorporation();
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -41,6 +41,7 @@ export function SpecialLocation(props: IProps): React.ReactElement {
|
|||||||
createPopup(popupId, CreateCorporationPopup, {
|
createPopup(popupId, CreateCorporationPopup, {
|
||||||
player: player,
|
player: player,
|
||||||
popupId: popupId,
|
popupId: popupId,
|
||||||
|
router: router,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user