Home page changes depending on role

This commit is contained in:
2026-05-02 10:23:50 +02:00
parent d541cf18b1
commit 6d8fcc6b53
3 changed files with 39 additions and 26 deletions

View File

@@ -64,7 +64,7 @@ pub fn protected_route(props: &ProtectedRouteProps) -> Html {
});
}
match (*auth_state) {
match *auth_state {
AuthState {
is_authenticated: None,
..
@@ -91,6 +91,5 @@ pub fn protected_route(props: &ProtectedRouteProps) -> Html {
props.children.clone().into()
}
}
_ => html! { <div>{ "Checking permissions..." }</div> },
}
}