refactor: add category and sub-cagory page for collections

This commit is contained in:
2025-05-14 00:51:54 +05:30
parent ffc880f6f8
commit a8f7a7bc14
7 changed files with 304 additions and 2 deletions

View File

@@ -101,7 +101,7 @@ const Navbar = () => {
const categoryItems = category
? category.map((category) => ({
label: category.category_name,
url: `/collections/${category.id}`,
url: `/category/${category.id}`,
}))
: []; // Fallback to an empty array if category is undefined