-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.cl.jac
More file actions
28 lines (25 loc) · 897 Bytes
/
index.cl.jac
File metadata and controls
28 lines (25 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Note: React imports removed - hooks use 'has' for state management
import from "@jac/runtime" { Router, Routes, Route }
import from .pages.MainApp { MainApp }
import from .pages.HomePage { HomePage }
import from .pages.LoginPage { LoginPage }
import from .pages.RegisterPage { RegisterPage }
import from .utils.ProtectedRoute { ProtectedRoute }
import ".global.css";
# Main App with Router
def:pub app() -> JsxElement {
return
<Router>
<Routes>
<Route path="/" element={<HomePage/>}/>
<Route path="/login" element={<LoginPage/>}/>
<Route path="/register" element={<RegisterPage/>}/>
<Route
path="/app"
element={<ProtectedRoute>
<MainApp/>
</ProtectedRoute>}
/>
</Routes>
</Router>;
}