fix issues
This commit is contained in:
@@ -113,11 +113,9 @@ export function RouteGuard({
|
||||
|
||||
// Show redirecting state
|
||||
if (!accessState.canAccess && config.redirectOnUnauthorized !== false) {
|
||||
return (
|
||||
<div className="flex items-center justify-center min-h-screen">
|
||||
<LoadingState message="Redirecting to login..." className="min-h-screen" />
|
||||
</div>
|
||||
);
|
||||
// Don't show a message, just redirect silently
|
||||
// The redirect happens in the useEffect above
|
||||
return null;
|
||||
}
|
||||
|
||||
// Render protected content
|
||||
|
||||
Reference in New Issue
Block a user