Update root

This commit is contained in:
nickofolas 2022-04-24 16:51:00 -05:00
parent 16d47543c4
commit fe330f9f9f

@ -22,8 +22,16 @@ export function InfiltrationRoot(props: IProps): React.ReactElement {
router.toCity(); router.toCity();
} }
if (!start) {
return ( return (
<div style={{ display: "flex", alignItems: "center", height: "75vh" }}>
{start ? (
<Game
StartingDifficulty={startingSecurityLevel}
Difficulty={difficulty}
Reward={reward}
MaxLevel={props.location.infiltrationData.maxClearanceLevel}
/>
) : (
<Intro <Intro
Location={props.location} Location={props.location}
Difficulty={difficulty} Difficulty={difficulty}
@ -31,15 +39,7 @@ export function InfiltrationRoot(props: IProps): React.ReactElement {
start={() => setStart(true)} start={() => setStart(true)}
cancel={cancel} cancel={cancel}
/> />
); )}
} </div>
return (
<Game
StartingDifficulty={startingSecurityLevel}
Difficulty={difficulty}
Reward={reward}
MaxLevel={props.location.infiltrationData.maxClearanceLevel}
/>
); );
} }