feat: categories and popups #171

Merged
enes merged 22 commits from 116-categories into staging 2024-12-12 16:37:38 +00:00
Showing only changes of commit 49b3ce4205 - Show all commits

View File

@ -252,18 +252,24 @@ export const CategoryFilterPopup = ({
</div> </div>
)} )}
</div> </div>
{(categoriesData as Category[]).map((category, i) => ( {(categoriesData as Category[]).map((category) => {
<CategoryCheckbox const name =
key={`${category.name}_${i}`} typeof category === 'string' ? category : category.name
inputValue={inputValue} return (
category={category} <CategoryCheckbox
path={[category.name]} key={name}
handleSingleSelection={handleSingleSelection} inputValue={inputValue}
handleCombinationSelection={handleCombinationSelection} category={category}
selectedSingles={filterCategories} path={[name]}
selectedCombinations={filterHierarchies} handleSingleSelection={handleSingleSelection}
/> handleCombinationSelection={
))} handleCombinationSelection
}
selectedSingles={filterCategories}
selectedCombinations={filterHierarchies}
/>
)
})}
</div> </div>
</div> </div>
<div <div