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