move console-log-viewer import to main.tsx
This commit is contained in:
parent
51fb9c765e
commit
d685fca7e3
@ -5,7 +5,6 @@ import { useQuizViewStore } from "@stores/quizView";
|
||||
import { useQuestionFlowControl } from "@utils/hooks/useQuestionFlowControl";
|
||||
import { notReachable } from "@utils/notReachable";
|
||||
import { quizThemes } from "@utils/themes/Publication/themePublication";
|
||||
import "https://markknol.github.io/console-log-viewer/console-log-viewer.js";
|
||||
import { enqueueSnackbar } from "notistack";
|
||||
import { ReactElement, useEffect } from "react";
|
||||
import { ContactForm } from "./ContactForm";
|
||||
|
49
src/main.tsx
49
src/main.tsx
@ -1,24 +1,25 @@
|
||||
import { createRoot } from "react-dom/client";
|
||||
import { RouterProvider, createBrowserRouter } from "react-router-dom";
|
||||
import App from "./App";
|
||||
|
||||
|
||||
const router = createBrowserRouter([
|
||||
{
|
||||
path: "/",
|
||||
children: [
|
||||
{
|
||||
index: true,
|
||||
element: <App />,
|
||||
},
|
||||
{
|
||||
path: ":quizId",
|
||||
element: <App />,
|
||||
},
|
||||
]
|
||||
}
|
||||
]);
|
||||
|
||||
const root = createRoot(document.getElementById("root")!);
|
||||
|
||||
root.render(<RouterProvider router={router} />);
|
||||
import "https://markknol.github.io/console-log-viewer/console-log-viewer.js";
|
||||
import { createRoot } from "react-dom/client";
|
||||
import { RouterProvider, createBrowserRouter } from "react-router-dom";
|
||||
import App from "./App";
|
||||
|
||||
|
||||
const router = createBrowserRouter([
|
||||
{
|
||||
path: "/",
|
||||
children: [
|
||||
{
|
||||
index: true,
|
||||
element: <App />,
|
||||
},
|
||||
{
|
||||
path: ":quizId",
|
||||
element: <App />,
|
||||
},
|
||||
]
|
||||
}
|
||||
]);
|
||||
|
||||
const root = createRoot(document.getElementById("root")!);
|
||||
|
||||
root.render(<RouterProvider router={router} />);
|
||||
|
Loading…
Reference in New Issue
Block a user