landing pages
This commit is contained in:
@@ -104,6 +104,12 @@ const ShipmentFormPage = React.lazy(() =>
|
||||
const GanttPage = React.lazy(() =>
|
||||
import("./modules/gantt/GanttPage").then((module) => ({ default: module.GanttPage }))
|
||||
);
|
||||
const LandingPage = React.lazy(() =>
|
||||
import("./modules/landing/LandingPage").then((module) => ({ default: module.LandingPage }))
|
||||
);
|
||||
const DarkLandingPage = React.lazy(() =>
|
||||
import("./modules/landing/LandingPage").then((module) => ({ default: module.DarkLandingPage }))
|
||||
);
|
||||
|
||||
function RouteFallback() {
|
||||
return (
|
||||
@@ -119,6 +125,8 @@ function lazyElement(element: React.ReactNode) {
|
||||
|
||||
const router = createBrowserRouter([
|
||||
{ path: "/login", element: <LoginPage /> },
|
||||
{ path: "/landing", element: lazyElement(<LandingPage />) },
|
||||
{ path: "/darklanding", element: lazyElement(<DarkLandingPage />) },
|
||||
{
|
||||
element: <ProtectedRoute />,
|
||||
children: [
|
||||
|
||||
Reference in New Issue
Block a user