File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import "@xyflow/react/dist/style.css";
88import "@radix-ui/themes/styles.css" ;
99import "./index.css" ;
1010import SplitConfigure from "./pages/splitConfigure" ;
11- import { createBrowserRouter , RouterProvider } from "react-router" ;
11+ import { createBrowserRouter , RouterProvider , Navigate } from "react-router" ;
1212import { ToastContainer } from "react-toastify" ;
1313import { ThemeContext , ThemeProvider } from "./contexts/ThemeContext" ;
1414import { StoreProvider } from "./contexts/StoreContext" ;
@@ -35,10 +35,10 @@ const router = createBrowserRouter([
3535 path : "/" ,
3636 element : < AccessDemoPage /> ,
3737 } ,
38- // {
39- // path: "/login",
40- // element: <LoginPage />,
41- // },
38+ {
39+ path : "/login" ,
40+ element : < Navigate to = "/" /> ,
41+ } ,
4242 {
4343 path : "/splitConfigure" ,
4444 element : < SplitConfigure /> ,
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ export default function AccessDemo() {
7070 < TextField . Root
7171 required
7272 id = "name"
73+ type = "text"
7374 size = "3"
7475 placeholder = "Name"
7576 value = { name }
@@ -79,6 +80,7 @@ export default function AccessDemo() {
7980 < TextField . Root
8081 required
8182 id = "email"
83+ type = "email"
8284 size = "3"
8385 placeholder = "Email"
8486 value = { email }
You can’t perform that action at this time.
0 commit comments