Skip to content

Commit

Permalink
lazy ecommerce page
Browse files Browse the repository at this point in the history
  • Loading branch information
issam-seghir committed Dec 14, 2023
1 parent c9bc50c commit c043368
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/jsx/main.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable unicorn/prefer-query-selector */
import "@fontsource/inter";

import "@scss/main.scss";

import { ContextProvider } from "@contexts/ContextProvider";

import Loading from "@pages/Loading";
Expand All @@ -25,6 +25,8 @@ import Orders from "@pages/Orders";
import Scheduler from "@pages/Scheduler";
import Tracker from "@pages/Tracker";

const LazyEcommerce = React.lazy(() => import("@pages/Ecommerce"));

// Registering Syncfusion license key
registerLicense(import.meta.env.VITE_SYNCFUSION_LICENSE_KEY);
export const router = createBrowserRouter(
Expand All @@ -40,7 +42,7 @@ export const router = createBrowserRouter(
},
{
path: "ecommerce",
element: <Ecommerce />,
element: <LazyEcommerce />,
},
{
path: "orders",
Expand Down

0 comments on commit c043368

Please sign in to comment.