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