Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
sujata
/
Akruti-Frontend
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Registry
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 9d9770fe
authored
2026-01-16 17:09:45 +0530
by
Ravindra Kanojiya
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
build error solved
1 parent
2d912b1d
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
19 additions
and
19 deletions
components/Brands/InnerDetailsBrands.js
components/Layout/Header.js
pages/data/brandsData.js → components/data/brandsData.js
pages/data/collectionsData.js → components/data/collectionsData.js
pages/brands/[category]/[slug].js
pages/brands/[category]/index.js
pages/collections/[category]/[subCategory]/[productSlug].js
pages/collections/[category]/[subCategory]/index.js
pages/collections/[category]/index.js
components/Brands/InnerDetailsBrands.js
View file @
9d9770f
...
@@ -20,17 +20,16 @@ const InnerDetailsBrands = ({ subCategories }) => {
...
@@ -20,17 +20,16 @@ const InnerDetailsBrands = ({ subCategories }) => {
if
(
!
subCategories
||
!
category
)
return
null
;
if
(
!
subCategories
||
!
category
)
return
null
;
// Optional sorting
// Optional sorting
const
sortedProducts
=
[...
subCategories
].
sort
((
a
,
b
)
=>
{
const
sortedProducts
=
[...
subCategories
].
sort
((
a
,
b
)
=>
{
if
(
sort
===
"name-asc"
)
{
if
(
sort
===
"name-asc"
)
return
a
.
subCategoryName
.
localeCompare
(
b
.
subCategoryName
);
return
a
.
subCategoryName
.
localeCompare
(
b
.
subCategoryName
);
}
if
(
sort
===
"name-desc"
)
{
if
(
sort
===
"name-desc"
)
return
b
.
subCategoryName
.
localeCompare
(
a
.
subCategoryName
);
return
b
.
subCategoryName
.
localeCompare
(
a
.
subCategoryName
);
}
return
0
;
return
0
;
});
});
return
(
return
(
<
section
className
=
"collection-m-section sec_padd"
>
<
section
className
=
"collection-m-section sec_padd"
>
<
div
className
=
"custom_container"
>
<
div
className
=
"custom_container"
>
...
@@ -62,14 +61,15 @@ const InnerDetailsBrands = ({ subCategories }) => {
...
@@ -62,14 +61,15 @@ const InnerDetailsBrands = ({ subCategories }) => {
)} */
}
)} */
}
<
/
>
<
/
>
<
select
<
select
className
=
"sortby-select"
className
=
"sortby-select"
value
=
{
sort
}
value
=
{
sort
}
onChange
=
{
handleChange
}
onChange
=
{
handleChange
}
>
>
<
option
value
=
""
>
Sort
By
<
/option
>
<
option
value
=
""
>
Sort
By
<
/option
>
<
option
value
=
"name-asc"
>
Name
:
A
–
Z
<
/option
>
<
option
value
=
"name-asc"
>
Name
:
A
–
Z
<
/option
>
<
option
value
=
"name-desc"
>
Name
:
Z
–
A
<
/option
>
<
option
value
=
"name-desc"
>
Name
:
Z
–
A
<
/option
>
<
/select
>
<
/select
>
<
/Col
>
<
/Col
>
<
/Row
>
<
/Row
>
...
...
components/Layout/Header.js
View file @
9d9770f
...
@@ -17,8 +17,8 @@ import Image from "next/image";
...
@@ -17,8 +17,8 @@ import Image from "next/image";
import
{
SubMenu
}
from
"./SubMenu"
;
import
{
SubMenu
}
from
"./SubMenu"
;
import
{
useDispatch
,
useSelector
}
from
"react-redux"
;
import
{
useDispatch
,
useSelector
}
from
"react-redux"
;
import
{
fetchHeader
}
from
"@/redux/slices/headerSlice"
;
import
{
fetchHeader
}
from
"@/redux/slices/headerSlice"
;
import
{
collectionsData
}
from
"@/
page
s/data/collectionsData"
;
import
{
collectionsData
}
from
"@/
component
s/data/collectionsData"
;
import
{
brandsData
}
from
"@/
page
s/data/brandsData"
;
import
{
brandsData
}
from
"@/
component
s/data/brandsData"
;
// const collectionsMenu = [
// const collectionsMenu = [
// {
// {
// key: "kitchens",
// key: "kitchens",
...
...
page
s/data/brandsData.js
→
component
s/data/brandsData.js
View file @
9d9770f
File moved
page
s/data/collectionsData.js
→
component
s/data/collectionsData.js
View file @
9d9770f
File moved
pages/brands/[category]/[slug].js
View file @
9d9770f
import
{
useRouter
}
from
"next/router"
;
import
{
useRouter
}
from
"next/router"
;
import
Breadcrumb
from
"@/components/Common/Breadcrumb"
;
import
Breadcrumb
from
"@/components/Common/Breadcrumb"
;
import
{
brandsData
}
from
"@/
page
s/data/brandsData"
;
import
{
brandsData
}
from
"@/
component
s/data/brandsData"
;
import
InnerBannerBrands
from
"@/components/Brands/InnerBannerBrands"
;
import
InnerBannerBrands
from
"@/components/Brands/InnerBannerBrands"
;
import
AboutInfoBrands
from
"@/components/Brands/AboutInfoBrands"
;
import
AboutInfoBrands
from
"@/components/Brands/AboutInfoBrands"
;
import
Video
from
"@/components/Brands/Video"
;
import
Video
from
"@/components/Brands/Video"
;
...
...
pages/brands/[category]/index.js
View file @
9d9770f
...
@@ -2,7 +2,7 @@ import { useRouter } from "next/router";
...
@@ -2,7 +2,7 @@ import { useRouter } from "next/router";
import
Breadcrumb
from
"@/components/Common/Breadcrumb"
;
import
Breadcrumb
from
"@/components/Common/Breadcrumb"
;
import
HeadTitle
from
"@/components/Common/HeadTitle"
;
import
HeadTitle
from
"@/components/Common/HeadTitle"
;
import
InnerDetailsBrands
from
"@/components/Brands/InnerDetailsBrands"
;
import
InnerDetailsBrands
from
"@/components/Brands/InnerDetailsBrands"
;
import
{
brandsData
}
from
"@/
page
s/data/brandsData"
;
import
{
brandsData
}
from
"@/
component
s/data/brandsData"
;
const
BrandCategoryPage
=
()
=>
{
const
BrandCategoryPage
=
()
=>
{
const
router
=
useRouter
();
const
router
=
useRouter
();
...
...
pages/collections/[category]/[subCategory]/[productSlug].js
View file @
9d9770f
import
{
useRouter
}
from
"next/router"
;
import
{
useRouter
}
from
"next/router"
;
import
Breadcrumb
from
"@/components/Common/Breadcrumb"
;
import
Breadcrumb
from
"@/components/Common/Breadcrumb"
;
import
{
collectionsData
}
from
"@/
page
s/data/collectionsData"
;
import
{
collectionsData
}
from
"@/
component
s/data/collectionsData"
;
import
InnerBanner
from
"@/components/Common/InnerBanner"
;
import
InnerBanner
from
"@/components/Common/InnerBanner"
;
import
InnerBannerproduct
from
"@/components/Collection/InnerBannerproduct"
;
import
InnerBannerproduct
from
"@/components/Collection/InnerBannerproduct"
;
import
AboutInfo
from
"@/components/Collection/AboutInfo"
;
import
AboutInfo
from
"@/components/Collection/AboutInfo"
;
...
...
pages/collections/[category]/[subCategory]/index.js
View file @
9d9770f
...
@@ -2,7 +2,7 @@ import { useRouter } from "next/router";
...
@@ -2,7 +2,7 @@ import { useRouter } from "next/router";
import
Breadcrumb
from
"@/components/Common/Breadcrumb"
;
import
Breadcrumb
from
"@/components/Common/Breadcrumb"
;
import
HeadTitle
from
"@/components/Common/HeadTitle"
;
import
HeadTitle
from
"@/components/Common/HeadTitle"
;
import
InnerDetailsSubCategory
from
"@/components/Collection/InnerDetailsSubCategory"
;
import
InnerDetailsSubCategory
from
"@/components/Collection/InnerDetailsSubCategory"
;
import
{
collectionsData
}
from
"@/
page
s/data/collectionsData"
;
import
{
collectionsData
}
from
"@/
component
s/data/collectionsData"
;
const
SubCategoryPage
=
()
=>
{
const
SubCategoryPage
=
()
=>
{
const
router
=
useRouter
();
const
router
=
useRouter
();
...
...
pages/collections/[category]/index.js
View file @
9d9770f
import
InnerDetails
from
"@/components/Collection/InnerDetails"
;
import
InnerDetails
from
"@/components/Collection/InnerDetails"
;
import
Breadcrumb
from
"@/components/Common/Breadcrumb"
;
import
Breadcrumb
from
"@/components/Common/Breadcrumb"
;
import
HeadTitle
from
"@/components/Common/HeadTitle"
;
import
HeadTitle
from
"@/components/Common/HeadTitle"
;
import
{
collectionsData
}
from
"@/
page
s/data/collectionsData"
;
import
{
collectionsData
}
from
"@/
component
s/data/collectionsData"
;
import
{
useRouter
}
from
"next/router"
;
import
{
useRouter
}
from
"next/router"
;
const
breadcrumbData
=
[
const
breadcrumbData
=
[
{
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment