[FeaturedBrandsPanel] CATEGORY, section key 값 설정
Detail Notes :
This commit is contained in:
@@ -75,24 +75,20 @@ export default function FeaturedCategoryNav({
|
||||
},
|
||||
index
|
||||
) => (
|
||||
<>
|
||||
<li key={"brandCategoryInfo-" + index}>
|
||||
<TButton
|
||||
className={
|
||||
selectedCatCdLv1 &&
|
||||
selectedCatCdLv1 === catCdLv1 &&
|
||||
css.selected
|
||||
}
|
||||
onClick={() => handleClick(catCdLv1)}
|
||||
selected={
|
||||
selectedCatCdLv1 && selectedCatCdLv1 === catCdLv1
|
||||
}
|
||||
type={TYPES.oneDepthCategory}
|
||||
>
|
||||
{catNmLv1}
|
||||
</TButton>
|
||||
</li>
|
||||
</>
|
||||
<li key={"brandCategoryInfo-" + index}>
|
||||
<TButton
|
||||
className={
|
||||
selectedCatCdLv1 &&
|
||||
selectedCatCdLv1 === catCdLv1 &&
|
||||
css.selected
|
||||
}
|
||||
onClick={() => handleClick(catCdLv1)}
|
||||
selected={selectedCatCdLv1 && selectedCatCdLv1 === catCdLv1}
|
||||
type={TYPES.oneDepthCategory}
|
||||
>
|
||||
{catNmLv1}
|
||||
</TButton>
|
||||
</li>
|
||||
)
|
||||
)}
|
||||
</ul>
|
||||
|
||||
@@ -31,7 +31,7 @@ export default function FeaturedSubCategoryNav({
|
||||
brandCategoryInfo
|
||||
.filter(({ catCdLv1 }, index) => catCdLv1 === selectedCatCdLv1)
|
||||
.map(({ catCdLv1, catNmLv1, categoryLv2Infos }, index) => (
|
||||
<>
|
||||
<div key={"categoryLv1Infos-" + index}>
|
||||
{categoryLv2Infos &&
|
||||
categoryLv2Infos.map(({ catCdLv2, catNmLv2 }, idx) => (
|
||||
<li key={"categoryLv2Infos-" + idx}>
|
||||
@@ -46,7 +46,7 @@ export default function FeaturedSubCategoryNav({
|
||||
</TButton>
|
||||
</li>
|
||||
))}
|
||||
</>
|
||||
</div>
|
||||
))}
|
||||
</ul>
|
||||
</Scroller>
|
||||
|
||||
Reference in New Issue
Block a user