diff --git a/src/app.rs b/src/app.rs index ad456c6..1402486 100644 --- a/src/app.rs +++ b/src/app.rs @@ -116,6 +116,7 @@ fn LoanerRoutes() -> impl MatchNestedRoutes + Clone { fn AdminRoutes() -> impl MatchNestedRoutes + Clone { view! { + diff --git a/src/components/login/admin.rs b/src/components/login/admin.rs index 0510f31..e509e79 100644 --- a/src/components/login/admin.rs +++ b/src/components/login/admin.rs @@ -1,16 +1,14 @@ -use leptos::prelude::*; -use crate::components::login::setup::provide_auth_context; +use crate::components::login::setup::provide_auth_context; +use leptos::prelude::*; #[component] -pub fn AdminLoginContext( - children: Children -) -> impl IntoView { +pub fn AdminLoginContext(children: Children) -> impl IntoView { provide_auth_context( crate::utils::use_origin(), - "https://cognito-idp.us-east-1.amazonaws.com/us-east-1_Lfjuy5zaM", - "56c2bqvl021rv8d5mq36blt7jv", - "/providers/callback" + "https://cognito-idp.us-east-1.amazonaws.com/us-east-1_rvCU4Xy4j", + "1vh1q994rid6cgi6tjf58r9jp4", + "/admin/callback", ); view! { {children()} } -} \ No newline at end of file +} diff --git a/src/pages/admin/shell.rs b/src/pages/admin/shell.rs index 77c5192..7bdca5c 100644 --- a/src/pages/admin/shell.rs +++ b/src/pages/admin/shell.rs @@ -1,7 +1,9 @@ -use leptos::prelude::*; -use crate::common::TabInfo; -use crate::components::{Banner, TabSidebarList}; +use crate::common::TabInfo; use crate::components::login::AdminLoginContext; +use crate::components::{Banner, Loading, TabSidebarList}; +use crate::pages::UnauthenticatedPage; +use leptos::prelude::*; +use leptos_oidc::{AuthLoaded, Authenticated}; /// # Admin Shell Component /// @@ -13,16 +15,20 @@ pub fn AdminShell() -> impl IntoView { view! { - // We'll put the tabs here. - + + + // We'll put the tabs here. + + + } }