Update root

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

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