Merge branch 'detail_v3' of http://gitlab.t-win.kr/ifheone/shoptime into detail_v3
This commit is contained in:
@@ -82,7 +82,7 @@ const JustForYouTestPanel = ({ panelInfo, ...rest }) => {
|
||||
}, [shelfInfos]);
|
||||
|
||||
const renderItem = useCallback(
|
||||
(shelfId, productInfos) =>
|
||||
(shelfId, shelfExpsOrd, productInfos) =>
|
||||
({ index, ...rest }) => {
|
||||
if (!productInfos || !productInfos[index]) {
|
||||
return null;
|
||||
@@ -130,7 +130,7 @@ const JustForYouTestPanel = ({ panelInfo, ...rest }) => {
|
||||
productName={title}
|
||||
productId={contentId}
|
||||
onClick={handleItemClick}
|
||||
spotlightId={`spotlightId-${shelfId}-${removeDotAndColon(contentId).replaceAll(" ", "")}`}
|
||||
spotlightId={`spotlightId-${shelfId}-${shelfExpsOrd}-${removeDotAndColon(contentId).replaceAll(" ", "")}`}
|
||||
{...rest}
|
||||
/>
|
||||
);
|
||||
@@ -196,6 +196,7 @@ const JustForYouTestPanel = ({ panelInfo, ...rest }) => {
|
||||
spacing={18}
|
||||
renderItem={renderItem(
|
||||
shelf.shelfId,
|
||||
shelf.shelfExpsOrd,
|
||||
shelf.productInfos
|
||||
)}
|
||||
direction="horizontal"
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-top: 100px;
|
||||
padding-right: 120px;
|
||||
}
|
||||
|
||||
.title {
|
||||
|
||||
Reference in New Issue
Block a user