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:
2025-10-03 17:52:56 +05:00
parent 531e2d2e7e
commit 0b024af454
31 changed files with 1770 additions and 115 deletions
+1 -2
View File
@@ -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;
+1 -2
View File
@@ -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;