lazy loading
parent
f992526f85
commit
0f7ed023cb
|
@ -2,11 +2,10 @@ import { Navigate, Route, Routes } from "react-router-dom";
|
||||||
import { Constants, isDevelopmentEnv } from "../../utils";
|
import { Constants, isDevelopmentEnv } from "../../utils";
|
||||||
import { lazy } from "react";
|
import { lazy } from "react";
|
||||||
import { MySupsenseFallback } from "../MySupsenseFallback";
|
import { MySupsenseFallback } from "../MySupsenseFallback";
|
||||||
import Authentication, {
|
import { AuthenticationMethod } from "../../Pages/Authentication";
|
||||||
AuthenticationMethod,
|
|
||||||
} from "../../Pages/Authentication";
|
|
||||||
|
|
||||||
// Lazy-loaded components
|
// Lazy-loaded components
|
||||||
|
const Authentication = lazy(() => import("../../Pages/Authentication"));
|
||||||
const Dashboard = lazy(() => import("../../Pages/Dashboard"));
|
const Dashboard = lazy(() => import("../../Pages/Dashboard"));
|
||||||
const PageNotFound = lazy(() => import("../../Pages/PageNotFound"));
|
const PageNotFound = lazy(() => import("../../Pages/PageNotFound"));
|
||||||
const PageInDevelopment = lazy(() => import("../../Pages/PageInDevelopment"));
|
const PageInDevelopment = lazy(() => import("../../Pages/PageInDevelopment"));
|
||||||
|
|
Loading…
Reference in New Issue