Refactor Protected and Public Routes for Consistent Loading UI; Enhance HomePage with User Company and Branch Details; Update LoginPage Layout; Introduce User Relations in Auth Services
This commit is contained in:
@@ -14,7 +14,7 @@ function ProtectedRoute({ children }: ProtectedRouteProps) {
|
||||
// Показываем загрузку пока проверяем авторизацию
|
||||
if (isLoading) {
|
||||
return (
|
||||
<div className="min-h-screen flex items-center justify-center">
|
||||
<div className="flex justify-center items-center min-h-screen">
|
||||
<div className="text-xl">Проверка авторизации...</div>
|
||||
</div>
|
||||
);
|
||||
@@ -30,4 +30,3 @@ function ProtectedRoute({ children }: ProtectedRouteProps) {
|
||||
}
|
||||
|
||||
export default ProtectedRoute;
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ function PublicRoute({ children }: PublicRouteProps) {
|
||||
// Показываем загрузку пока проверяем авторизацию
|
||||
if (isLoading) {
|
||||
return (
|
||||
<div className="min-h-screen flex items-center justify-center">
|
||||
<div className="flex justify-center items-center min-h-screen">
|
||||
<div className="text-xl">Загрузка...</div>
|
||||
</div>
|
||||
);
|
||||
@@ -31,4 +31,3 @@ function PublicRoute({ children }: PublicRouteProps) {
|
||||
}
|
||||
|
||||
export default PublicRoute;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user