first commit
This commit is contained in:
@@ -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>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user