diff --git a/src/components/layout/Layout.tsx b/src/components/layout/Layout.tsx index c08ebfd..06b0018 100644 --- a/src/components/layout/Layout.tsx +++ b/src/components/layout/Layout.tsx @@ -27,9 +27,10 @@ const LoadingFallback = () => ( const Layout: React.FC = ({ children }) => { const location = useLocation(); const isOnboarding = location.pathname.includes('/onboarding'); + const isCropPhoto = location.pathname === '/crop-photo'; - // Не показываем header и navigation на экранах онбординга - if (isOnboarding) { + // Не показываем header и navigation на экранах онбординга и обрезки фото + if (isOnboarding || isCropPhoto) { return <>{children}; }