minor fix

This commit is contained in:
nflnkr 2024-05-04 15:24:59 +03:00
parent 79674fedbb
commit ffc8b5e9cb

@ -1,10 +1,10 @@
import { createRoot } from "react-dom/client"; import { createRoot } from "react-dom/client";
import { RouterProvider, createBrowserRouter } from "react-router-dom"; import { RouteObject, RouterProvider, createBrowserRouter } from "react-router-dom";
import App from "./App"; import App from "./App";
import { StrictMode, lazy } from "react"; import { StrictMode, lazy } from "react";
const routes = [ const routes: RouteObject[] = [
{ {
path: "/", path: "/",
children: [ children: [
@ -23,13 +23,9 @@ const routes = [
if (import.meta.env.DEV) { if (import.meta.env.DEV) {
const WidgetDev = lazy(() => import("./WidgetDev")); const WidgetDev = lazy(() => import("./WidgetDev"));
routes[0].children.push({ routes[0].children?.push({
path: "widgetdev", path: "widgetdev",
element: ( element: <WidgetDev />,
<StrictMode>
<WidgetDev />
</StrictMode>
)
}); });
} }