chore: add commented auth logic

This commit is contained in:
alphafetus committed 2026-01-28 14:42:01 -05:00
1 parent 765322bcca
commit 51f1acc00b
1 file changed
+12 -7
+12 -7
View File
@@ -1,7 +1,9 @@
use leptos::prelude::*;
use leptos_oidc::{AuthLoaded, Authenticated};
use crate::common::TabInfo;
use crate::components::{Banner, TabSidebarList};
use crate::components::{Banner, Loading, TabSidebarList};
use crate::components::login::StudentLoginContext;
use crate::pages::UnauthenticatedPage;
#[component]
pub fn StudentShell() -> impl IntoView {
@@ -9,12 +11,15 @@ pub fn StudentShell() -> impl IntoView {
view! {
<StudentLoginContext>
<Banner title="R15 Student Scholarship Application" logo="/PHS_Stacked_Acronym.png" />
// We'll put the tabs here.
<TabSidebarList tabs=vec![
TabInfo::new("Home", "/students/home"),
TabInfo::new("Demographics", "/students/demographics"),
TabInfo::new("Additional Info", "/students/additional"),
] />
// <AuthLoaded fallback=Loading>
// <Authenticated unauthenticated=UnauthenticatedPage>
<TabSidebarList tabs=vec![
TabInfo::new("Home", "/students/home"),
TabInfo::new("Demographics", "/students/demographics"),
TabInfo::new("Additional Info", "/students/additional"),
] />
// </Authenticated>
// </AuthLoaded>
</StudentLoginContext>
}
}