first commit
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import Login from '@/features/auth/ui/Login';
|
||||
import { Suspense } from 'react';
|
||||
|
||||
const page = () => {
|
||||
return (
|
||||
<div>
|
||||
<Suspense>
|
||||
<Login />
|
||||
</div>
|
||||
</Suspense>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import OrderPage from '@/features/cart/ui/OrderPage';
|
||||
import { Suspense } from 'react';
|
||||
|
||||
const page = () => {
|
||||
return (
|
||||
<div>
|
||||
<Suspense>
|
||||
<OrderPage />
|
||||
</div>
|
||||
</Suspense>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import CartPage from '@/features/cart/ui/CartPage';
|
||||
import { Suspense } from 'react';
|
||||
|
||||
const page = () => {
|
||||
return (
|
||||
<div>
|
||||
<Suspense>
|
||||
<CartPage />
|
||||
</div>
|
||||
</Suspense>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import Product from '@/features/category/ui/Product';
|
||||
import { Suspense } from 'react';
|
||||
|
||||
const page = () => {
|
||||
return (
|
||||
<div>
|
||||
<Suspense>
|
||||
<Product />
|
||||
</div>
|
||||
</Suspense>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import SubCategory from '@/features/category/ui/SubCategory';
|
||||
import { Suspense } from 'react';
|
||||
|
||||
const page = () => {
|
||||
return (
|
||||
<div>
|
||||
<Suspense>
|
||||
<SubCategory />
|
||||
</div>
|
||||
</Suspense>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import Category from '@/features/category/ui/Category';
|
||||
import { Suspense } from 'react';
|
||||
|
||||
const page = () => {
|
||||
return (
|
||||
<div>
|
||||
<Suspense>
|
||||
<Category />
|
||||
</div>
|
||||
</Suspense>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import Favourite from '@/features/favourite/ui/Favourite';
|
||||
import { Suspense } from 'react';
|
||||
|
||||
const page = () => {
|
||||
return (
|
||||
<div>
|
||||
<Suspense>
|
||||
<Favourite />
|
||||
</div>
|
||||
</Suspense>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 (
|
||||
<>
|
||||
<Suspense>
|
||||
<Navbar />
|
||||
{children}
|
||||
{!hideFooter && <Footer />}
|
||||
</>
|
||||
</Suspense>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import ProductDetail from '@/features/product/ui/Product';
|
||||
import { Suspense } from 'react';
|
||||
|
||||
const page = () => {
|
||||
return (
|
||||
<div>
|
||||
<Suspense>
|
||||
<ProductDetail />
|
||||
</div>
|
||||
</Suspense>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import SearchResult from '@/features/search/ui/Search';
|
||||
import { Suspense } from 'react';
|
||||
|
||||
const page = () => {
|
||||
return (
|
||||
<div>
|
||||
<Suspense>
|
||||
<SearchResult />
|
||||
</div>
|
||||
</Suspense>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user