perf(react): remove lazy imports again
Some checks failed
/ build-web (push) Successful in 4m52s
/ build-mobile (push) Failing after 8m36s
/ build-desktop (linux) (push) Successful in 7m46s
/ release (push) Has been skipped

This commit is contained in:
Alois 2026-08-31 23:09:02 +02:00
commit e0c2331af3
Signed by: alois
SSH key fingerprint: SHA256:GBzT2DXvAuGV9XIV5W3WrzVpjU54FThmxHXdbz95J24
8 changed files with 82 additions and 121 deletions

View file

@ -1,20 +1,30 @@
import { lazy } from "react";
import { settingsNavigation } from "./navigation";
import SettingsIndex from "./pages/index";
import Profile from "./pages/profile";
import Security from "./pages/security";
import Chat from "./pages/chat";
import Call from "./pages/call";
import Cache from "./pages/cache";
import Theme from "./pages/theme";
import Accessibility from "./pages/accessibility";
import Hotkeys from "./pages/hotkeys";
import Licenses from "./pages/licenses";
const pageComponents = {
profile: lazy(() => import("./pages/profile")),
security: lazy(() => import("./pages/security")),
chat: lazy(() => import("./pages/chat")),
call: lazy(() => import("./pages/call")),
cache: lazy(() => import("./pages/cache")),
theme: lazy(() => import("./pages/theme")),
accessibility: lazy(() => import("./pages/accessibility")),
hotkeys: lazy(() => import("./pages/hotkeys")),
licenses: lazy(() => import("./pages/licenses")),
profile: Profile,
security: Security,
chat: Chat,
call: Call,
cache: Cache,
theme: Theme,
accessibility: Accessibility,
hotkeys: Hotkeys,
licenses: Licenses,
} as const;
export const settingsPages = [
{ path: "/", component: lazy(() => import("./pages/index")) },
{ path: "/", component: SettingsIndex },
...settingsNavigation.map((page) => ({
...page,
component: pageComponents[page.path],