добавил флаг
This commit is contained in:
1 parent
b8422f5472
commit
846e8ef91a
2 files changed
+2
-1
No files matched your search
@@ -27,7 +27,7 @@ export const CategoryFilters = () => {
|
|||||||
<div className={styles.blockTitle}>{`${attr.name}:`}</div>
|
<div className={styles.blockTitle}>{`${attr.name}:`}</div>
|
||||||
<div className={styles.options}>
|
<div className={styles.options}>
|
||||||
{attr.vals.map(v => {
|
{attr.vals.map(v => {
|
||||||
const key = `${attr.name}`;
|
const key = `${attr.flag}`;
|
||||||
const active = local[key]?.includes(v.val);
|
const active = local[key]?.includes(v.val);
|
||||||
return (
|
return (
|
||||||
<label key={v.id} className={styles.opt}>
|
<label key={v.id} className={styles.opt}>
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ export interface CategoryAtrVals{
|
|||||||
export interface CategoryAtributes {
|
export interface CategoryAtributes {
|
||||||
id: number;
|
id: number;
|
||||||
name: string;
|
name: string;
|
||||||
|
flag: string;
|
||||||
vals: CategoryAtrVals[];
|
vals: CategoryAtrVals[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user