first commit

This commit is contained in:
Samandar Turgunboyev
2025-12-15 18:50:22 +05:00
parent 55163536b8
commit 367a6c4749
10 changed files with 30 additions and 20 deletions

View File

@@ -1,10 +1,11 @@
import Login from '@/features/auth/ui/Login'; import Login from '@/features/auth/ui/Login';
import { Suspense } from 'react';
const page = () => { const page = () => {
return ( return (
<div> <Suspense>
<Login /> <Login />
</div> </Suspense>
); );
}; };

View File

@@ -1,10 +1,11 @@
import OrderPage from '@/features/cart/ui/OrderPage'; import OrderPage from '@/features/cart/ui/OrderPage';
import { Suspense } from 'react';
const page = () => { const page = () => {
return ( return (
<div> <Suspense>
<OrderPage /> <OrderPage />
</div> </Suspense>
); );
}; };

View File

@@ -1,10 +1,11 @@
import CartPage from '@/features/cart/ui/CartPage'; import CartPage from '@/features/cart/ui/CartPage';
import { Suspense } from 'react';
const page = () => { const page = () => {
return ( return (
<div> <Suspense>
<CartPage /> <CartPage />
</div> </Suspense>
); );
}; };

View File

@@ -1,10 +1,11 @@
import Product from '@/features/category/ui/Product'; import Product from '@/features/category/ui/Product';
import { Suspense } from 'react';
const page = () => { const page = () => {
return ( return (
<div> <Suspense>
<Product /> <Product />
</div> </Suspense>
); );
}; };

View File

@@ -1,10 +1,11 @@
import SubCategory from '@/features/category/ui/SubCategory'; import SubCategory from '@/features/category/ui/SubCategory';
import { Suspense } from 'react';
const page = () => { const page = () => {
return ( return (
<div> <Suspense>
<SubCategory /> <SubCategory />
</div> </Suspense>
); );
}; };

View File

@@ -1,10 +1,11 @@
import Category from '@/features/category/ui/Category'; import Category from '@/features/category/ui/Category';
import { Suspense } from 'react';
const page = () => { const page = () => {
return ( return (
<div> <Suspense>
<Category /> <Category />
</div> </Suspense>
); );
}; };

View File

@@ -1,10 +1,11 @@
import Favourite from '@/features/favourite/ui/Favourite'; import Favourite from '@/features/favourite/ui/Favourite';
import { Suspense } from 'react';
const page = () => { const page = () => {
return ( return (
<div> <Suspense>
<Favourite /> <Favourite />
</div> </Suspense>
); );
}; };

View File

@@ -3,6 +3,7 @@
import { usePathname } from '@/shared/config/i18n/navigation'; import { usePathname } from '@/shared/config/i18n/navigation';
import Footer from '@/widgets/footer/ui'; import Footer from '@/widgets/footer/ui';
import Navbar from '@/widgets/navbar/ui'; import Navbar from '@/widgets/navbar/ui';
import { Suspense } from 'react';
const HIDE_FOOTER_ROUTES = ['/auth', '/checkout']; const HIDE_FOOTER_ROUTES = ['/auth', '/checkout'];
@@ -18,10 +19,10 @@ export default function LayoutShell({
); );
return ( return (
<> <Suspense>
<Navbar /> <Navbar />
{children} {children}
{!hideFooter && <Footer />} {!hideFooter && <Footer />}
</> </Suspense>
); );
} }

View File

@@ -1,10 +1,11 @@
import ProductDetail from '@/features/product/ui/Product'; import ProductDetail from '@/features/product/ui/Product';
import { Suspense } from 'react';
const page = () => { const page = () => {
return ( return (
<div> <Suspense>
<ProductDetail /> <ProductDetail />
</div> </Suspense>
); );
}; };

View File

@@ -1,10 +1,11 @@
import SearchResult from '@/features/search/ui/Search'; import SearchResult from '@/features/search/ui/Search';
import { Suspense } from 'react';
const page = () => { const page = () => {
return ( return (
<div> <Suspense>
<SearchResult /> <SearchResult />
</div> </Suspense>
); );
}; };