From 367a6c4749553a96043e7d66f469a7383f823dde Mon Sep 17 00:00:00 2001 From: Samandar Turgunboyev Date: Mon, 15 Dec 2025 18:50:22 +0500 Subject: [PATCH] first commit --- src/app/[locale]/auth/page.tsx | 5 +++-- src/app/[locale]/cart/order/page.tsx | 5 +++-- src/app/[locale]/cart/page.tsx | 5 +++-- src/app/[locale]/category/[categoryId]/[subId]/page.tsx | 5 +++-- src/app/[locale]/category/[categoryId]/page.tsx | 5 +++-- src/app/[locale]/category/page.tsx | 5 +++-- src/app/[locale]/favourite/page.tsx | 5 +++-- src/app/[locale]/layout-shell.tsx | 5 +++-- src/app/[locale]/product/[product]/page.tsx | 5 +++-- src/app/[locale]/search/page.tsx | 5 +++-- 10 files changed, 30 insertions(+), 20 deletions(-) diff --git a/src/app/[locale]/auth/page.tsx b/src/app/[locale]/auth/page.tsx index 02d09b7..d97fc7f 100644 --- a/src/app/[locale]/auth/page.tsx +++ b/src/app/[locale]/auth/page.tsx @@ -1,10 +1,11 @@ import Login from '@/features/auth/ui/Login'; +import { Suspense } from 'react'; const page = () => { return ( -
+ -
+ ); }; diff --git a/src/app/[locale]/cart/order/page.tsx b/src/app/[locale]/cart/order/page.tsx index 6728f70..72a3f84 100644 --- a/src/app/[locale]/cart/order/page.tsx +++ b/src/app/[locale]/cart/order/page.tsx @@ -1,10 +1,11 @@ import OrderPage from '@/features/cart/ui/OrderPage'; +import { Suspense } from 'react'; const page = () => { return ( -
+ -
+ ); }; diff --git a/src/app/[locale]/cart/page.tsx b/src/app/[locale]/cart/page.tsx index 03bfd0d..169842c 100644 --- a/src/app/[locale]/cart/page.tsx +++ b/src/app/[locale]/cart/page.tsx @@ -1,10 +1,11 @@ import CartPage from '@/features/cart/ui/CartPage'; +import { Suspense } from 'react'; const page = () => { return ( -
+ -
+ ); }; diff --git a/src/app/[locale]/category/[categoryId]/[subId]/page.tsx b/src/app/[locale]/category/[categoryId]/[subId]/page.tsx index bb01546..5f9a5f5 100644 --- a/src/app/[locale]/category/[categoryId]/[subId]/page.tsx +++ b/src/app/[locale]/category/[categoryId]/[subId]/page.tsx @@ -1,10 +1,11 @@ import Product from '@/features/category/ui/Product'; +import { Suspense } from 'react'; const page = () => { return ( -
+ -
+ ); }; diff --git a/src/app/[locale]/category/[categoryId]/page.tsx b/src/app/[locale]/category/[categoryId]/page.tsx index de0dae1..cc563c0 100644 --- a/src/app/[locale]/category/[categoryId]/page.tsx +++ b/src/app/[locale]/category/[categoryId]/page.tsx @@ -1,10 +1,11 @@ import SubCategory from '@/features/category/ui/SubCategory'; +import { Suspense } from 'react'; const page = () => { return ( -
+ -
+ ); }; diff --git a/src/app/[locale]/category/page.tsx b/src/app/[locale]/category/page.tsx index 479f090..096200a 100644 --- a/src/app/[locale]/category/page.tsx +++ b/src/app/[locale]/category/page.tsx @@ -1,10 +1,11 @@ import Category from '@/features/category/ui/Category'; +import { Suspense } from 'react'; const page = () => { return ( -
+ -
+ ); }; diff --git a/src/app/[locale]/favourite/page.tsx b/src/app/[locale]/favourite/page.tsx index 502b9e4..b480835 100644 --- a/src/app/[locale]/favourite/page.tsx +++ b/src/app/[locale]/favourite/page.tsx @@ -1,10 +1,11 @@ import Favourite from '@/features/favourite/ui/Favourite'; +import { Suspense } from 'react'; const page = () => { return ( -
+ -
+ ); }; diff --git a/src/app/[locale]/layout-shell.tsx b/src/app/[locale]/layout-shell.tsx index 658f25a..ad6d105 100644 --- a/src/app/[locale]/layout-shell.tsx +++ b/src/app/[locale]/layout-shell.tsx @@ -3,6 +3,7 @@ import { usePathname } from '@/shared/config/i18n/navigation'; import Footer from '@/widgets/footer/ui'; import Navbar from '@/widgets/navbar/ui'; +import { Suspense } from 'react'; const HIDE_FOOTER_ROUTES = ['/auth', '/checkout']; @@ -18,10 +19,10 @@ export default function LayoutShell({ ); return ( - <> + {children} {!hideFooter &&