diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-10-11 10:22:11 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-10-11 14:09:27 +0700 |
| commit | 23f67959168cd0126582c44f2a5b1bfdc45b268a (patch) | |
| tree | a5a612967c92f52ccdf2081402822e5e29fe66a1 /src/pages/shop/brands | |
| parent | 5b45d6ac182fcbe9d6e235a227688e0ae60869d9 (diff) | |
Add breadcrumb on detail product, search, brand, category page
Diffstat (limited to 'src/pages/shop/brands')
| -rw-r--r-- | src/pages/shop/brands/[slug].jsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pages/shop/brands/[slug].jsx b/src/pages/shop/brands/[slug].jsx index 88f19bc0..d75475b7 100644 --- a/src/pages/shop/brands/[slug].jsx +++ b/src/pages/shop/brands/[slug].jsx @@ -3,6 +3,7 @@ import { getIdFromSlug, getNameFromSlug } from '@/core/utils/slug' import { useRouter } from 'next/router' import _ from 'lodash' import Seo from '@/core/components/Seo' +import Breadcrumb from '@/lib/brand/components/Breadcrumb' const BasicLayout = dynamic(() => import('@/core/components/layouts/BasicLayout')) const ProductSearch = dynamic(() => import('@/lib/product/components/ProductSearch')) @@ -26,6 +27,8 @@ export default function BrandDetail() { ]} /> + <Breadcrumb brandName={brandName} /> + <Brand id={getIdFromSlug(slug)} /> {!_.isEmpty(router.query) && ( <ProductSearch |
