mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-26 19:14:32 +02:00
UI: Memoize character overview (#247)
This commit is contained in:
+11
-5
@@ -432,11 +432,17 @@ export function GameRoot(): React.ReactElement {
|
||||
<BypassWrapper content={bypassGame ? mainPage : null}>
|
||||
<SnackbarProvider>
|
||||
<Overview mode={ITutorial.isRunning ? "tutorial" : "overview"}>
|
||||
{!ITutorial.isRunning ? (
|
||||
<CharacterOverview save={() => saveObject.saveGame()} killScripts={killAllScripts} />
|
||||
) : (
|
||||
<InteractiveTutorialRoot />
|
||||
)}
|
||||
{(parentOpen) =>
|
||||
!ITutorial.isRunning ? (
|
||||
<CharacterOverview
|
||||
parentOpen={parentOpen}
|
||||
save={() => saveObject.saveGame()}
|
||||
killScripts={killAllScripts}
|
||||
/>
|
||||
) : (
|
||||
<InteractiveTutorialRoot />
|
||||
)
|
||||
}
|
||||
</Overview>
|
||||
{withSidebar ? (
|
||||
<Box display="flex" flexDirection="row" width="100%">
|
||||
|
||||
Reference in New Issue
Block a user