init commit

This commit is contained in:
zihluwang
2025-03-26 19:06:46 +08:00
commit a46d254148
22 changed files with 3248 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import { StrictMode } from "react"
import { createRoot } from "react-dom/client"
import { Provider } from "react-redux"
import { BrowserRouter, Route, Routes } from "react-router"
import { store } from "@/store"
import "./index.css"
import { ProtectedRoute } from "@/components/protected-route"
createRoot(document.getElementById("root")!).render(
<StrictMode>
<Provider store={store}>
<BrowserRouter>
<Routes>
<Route element={<ProtectedRoute />}>
<Route path="/" element={null}></Route>
</Route>
</Routes>
</BrowserRouter>
</Provider>
</StrictMode>,
)