Skip to content

Commit

Permalink
Header compoenent commment removed
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadshakkeerp committed Sep 10, 2024
1 parent ca3d04a commit aaa7fbd
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/components/HeaderCategory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,8 @@ export const HeaderCategory: FC<headerCategoriesProps> = () => {
setHoveredCategory(null);
};
const handleHoverCategory = useMemo(() => (categoryName: string) => {
// let foundSubCategory: SubCategory[] | undefined;
// if (categoryName) {
// const foundCategory = headerCategories.find(
// (item: HeaderCategoryProps) => item.title === categoryName
// );
// if (foundCategory && foundCategory.subCategories) {
// foundSubCategory = foundCategory.subCategories;
// } else {
// foundSubCategory = undefined;
// }
// }
// setFindSubCategory(foundSubCategory);
const foundCategory = headerCategories?.find((item: HeaderCategoryProps) => item.title === categoryName)

// setFindSubCategory(foundCategory?.subCategories || [])
return foundCategory?.subCategories || []
// console.log(foundCategory?.subCategories)
Expand Down

0 comments on commit aaa7fbd

Please sign in to comment.