fix(ui): не перезапускать анимированный фон при смене страницы

This commit is contained in:
kewldan
2026-07-13 01:52:36 +03:00
parent a7ff8a6b09
commit 1ea9b99ab5
3 changed files with 52 additions and 4 deletions

View File

@@ -31,6 +31,7 @@ import {
ServiceUnavailableScreen,
} from './components/blocking';
import { ErrorBoundary } from './components/ErrorBoundary';
import { BackgroundHost } from './components/backgrounds/BackgroundHost';
import { PermissionRoute } from '@/components/auth/PermissionRoute';
import { saveReturnUrl } from './utils/token';
import { useAnalyticsCounters } from './hooks/useAnalyticsCounters';
@@ -259,6 +260,8 @@ function App() {
return (
<>
{/* Живёт над <Routes>: анимация фона не перезапускается при навигации */}
<BackgroundHost />
<BlockingOverlay />
<Routes>
{/* Public routes */}