This commit is contained in:
2025-05-29 21:27:15 -04:00
parent 0de755cfc9
commit adf682a981
12 changed files with 59 additions and 83 deletions

View File

@@ -7,14 +7,13 @@ pub fn MainLayout() -> Element {
let auth_context = use_context::<AuthContext>();
if auth_context.jwt.cloned().is_none() {
return rsx! { Login { } };
return rsx! {
Login {}
};
}
return rsx! {
Navbar {}
div{
id: "content",
Outlet::<Route> {}
}
div { id: "content", Outlet::<Route> {} }
};
}