Home page changes depending on role
This commit is contained in:
@@ -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> },
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user