Fix Notepad render loop and stabilize toolbox modules
Some checks failed
Deploy Sokko G / deploy (push) Failing after 2s
Some checks failed
Deploy Sokko G / deploy (push) Failing after 2s
This commit is contained in:
parent
c096cc07fe
commit
6c61e11f9a
8 changed files with 118 additions and 94 deletions
|
|
@ -4,6 +4,7 @@ import { lazy, Suspense, useCallback, useEffect, useState } from "react";
|
|||
import { createRoot } from "react-dom/client";
|
||||
import "./styles/main.scss";
|
||||
import { AppOverlays } from "./components/AppOverlays.jsx";
|
||||
import { AppErrorBoundary } from "./components/AppErrorBoundary.jsx";
|
||||
import { Shell } from "./components/Shell.jsx";
|
||||
import { useIndexedToolboxes } from "./features/toolboxes/storage/useIndexedToolboxes.js";
|
||||
import { useToolboxActions } from "./features/toolboxes/useToolboxActions.js";
|
||||
|
|
@ -103,32 +104,34 @@ function App() {
|
|||
|
||||
return (
|
||||
<Shell route={route} content={siteContent} games={games} toolboxes={store.toolboxes} links={store.links} drawerGameId={drawerGameId} actions={actions}>
|
||||
<RouteContent
|
||||
route={route}
|
||||
siteContent={siteContent}
|
||||
games={games}
|
||||
gamesError={gamesError}
|
||||
mhwilds={mhwilds}
|
||||
diablo4={diablo4}
|
||||
filters={filters}
|
||||
setFilters={setFilters}
|
||||
t={t}
|
||||
toolboxes={store.toolboxes}
|
||||
links={store.links}
|
||||
getGame={getGame}
|
||||
getToolboxGame={getToolboxGame}
|
||||
actions={actions}
|
||||
storageUsage={store.storageUsage}
|
||||
storageReady={store.ready}
|
||||
toastPosition={store.toastPosition}
|
||||
setToastPosition={store.setToastPosition}
|
||||
getModuleData={store.getModuleData}
|
||||
updateToolbox={actions.updateToolbox}
|
||||
updateModuleData={store.updateModuleData}
|
||||
addImageFiles={actions.addImageFiles}
|
||||
pendingTutorialToolboxId={pendingTutorialToolboxId}
|
||||
setPendingTutorialToolboxId={setPendingTutorialToolboxId}
|
||||
/>
|
||||
<AppErrorBoundary route={route}>
|
||||
<RouteContent
|
||||
route={route}
|
||||
siteContent={siteContent}
|
||||
games={games}
|
||||
gamesError={gamesError}
|
||||
mhwilds={mhwilds}
|
||||
diablo4={diablo4}
|
||||
filters={filters}
|
||||
setFilters={setFilters}
|
||||
t={t}
|
||||
toolboxes={store.toolboxes}
|
||||
links={store.links}
|
||||
getGame={getGame}
|
||||
getToolboxGame={getToolboxGame}
|
||||
actions={actions}
|
||||
storageUsage={store.storageUsage}
|
||||
storageReady={store.ready}
|
||||
toastPosition={store.toastPosition}
|
||||
setToastPosition={store.setToastPosition}
|
||||
getModuleData={store.getModuleData}
|
||||
updateToolbox={actions.updateToolbox}
|
||||
updateModuleData={store.updateModuleData}
|
||||
addImageFiles={actions.addImageFiles}
|
||||
pendingTutorialToolboxId={pendingTutorialToolboxId}
|
||||
setPendingTutorialToolboxId={setPendingTutorialToolboxId}
|
||||
/>
|
||||
</AppErrorBoundary>
|
||||
{drawerGameId && (
|
||||
<Suspense fallback={null}>
|
||||
<ToolboxDrawer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue