We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8394d4c commit 509c4edCopy full SHA for 509c4ed
packages/app/src/main.tsx
@@ -16,8 +16,13 @@ import Audit from "./pages/audit/index";
16
import AuditFile from "./pages/audit/file";
17
import ProjectsPage from "./pages/projects";
18
import Auth from "./pages/auth";
19
+import Index from "./pages";
20
21
const router = createBrowserRouter([
22
+ {
23
+ path: "/",
24
+ element: <Index />,
25
+ },
26
{
27
path: "/splitConfigure",
28
element: <SplitConfigure />,
packages/app/src/pages/index.tsx
@@ -0,0 +1,15 @@
1
+import { useEffect } from "react";
2
+import { useNavigate } from "react-router";
3
+
4
+export default function Index() {
5
+ const navigate = useNavigate();
6
7
+ useEffect(() => {
8
+ navigate('/projects');
9
+ }, []);
10
11
+ return (
12
+ <div>
13
+ </div>
14
+ );
15
+}
0 commit comments