Spaces:
Sleeping
Sleeping
Download frontend/src/App.jsx from yamiclaws/auth-backend: direct link, hf CLI and curl.
- Browser
- Download file 934 Bytes
-
https://huggingface.co/spaces/yamiclaws/auth-backend/resolve/main/frontend/src/App.jsx
- Command line
-
hf download hf://spaces/yamiclaws/auth-backend/frontend/src/App.jsx
-
curl -L -o App.jsx https://huggingface.co/spaces/yamiclaws/auth-backend/resolve/main/frontend/src/App.jsx
934 Bytes
| import { Routes, Route, Navigate } from "react-router-dom" | |
| import { AuthProvider } from "./context/AuthContext" | |
| import Navbar from "./components/Navbar" | |
| import ProtectedRoute from "./components/ProtectedRoute" | |
| import Login from "./pages/Login" | |
| import Register from "./pages/Register" | |
| import VerifyEmail from "./pages/VerifyEmail" | |
| import Dashboard from "./pages/Dashboard" | |
| export default function App() { | |
| return ( | |
| <AuthProvider> | |
| <Navbar /> | |
| <Routes> | |
| <Route path="/login" element={<Login />} /> | |
| <Route path="/register" element={<Register />} /> | |
| <Route path="/verify-email" element={<VerifyEmail />} /> | |
| <Route | |
| path="/dashboard" | |
| element={ | |
| <ProtectedRoute> | |
| <Dashboard /> | |
| </ProtectedRoute> | |
| } | |
| /> | |
| <Route path="*" element={<Navigate to="/dashboard" replace />} /> | |
| </Routes> | |
| </AuthProvider> | |
| ) | |
| } | |