[상품 상세 노출 변경에 따른 처리]

- 상품명 노출추가.
 - theadercustom부분에 themetitle부분 처리.
 - qr 크기 조절.(240px -> 190px)
 - 금액 노출부분 하단으로 떨구도록
This commit is contained in:
junghoon86.park
2025-12-01 18:18:13 +09:00
parent 579512402e
commit c522fe2777
11 changed files with 173 additions and 88 deletions

View File

@@ -24,6 +24,9 @@ const SpottableComponent = Spottable("button");
export default function THeaderCustom({
prdtId,
title,
type,
themeTitle,
selectedIndex,
className,
onBackButton,
onSpotlightUp,
@@ -36,15 +39,18 @@ export default function THeaderCustom({
kind,
logoImg,
patnrId,
themeData,
...rest
}) {
const convertedTitle = useMemo(() => {
if (title && typeof title === "string") {
const cleanedTitle = title.replace(/(\r\n|\n)/g, "");
return $L(marqueeDisabled ? title : cleanedTitle);
} else if(type === "theme") {
return themeData?.productInfos[selectedIndex].prdtNm;
}
return "";
}, [marqueeDisabled, title]);
}, [marqueeDisabled, title, selectedIndex, themeData, type]);
const _onClick = useCallback(
(e) => {
@@ -87,6 +93,9 @@ export default function THeaderCustom({
role="button"
/>
)}
{type === "theme" && themeTitle && (
<span className={css.themeTitle} dangerouslySetInnerHTML={{ __html: themeTitle }} />
)}
{kind ? (
""
) : (