[SHOPTIME-3758] 추가 수정
This commit is contained in:
@@ -2267,7 +2267,7 @@ const VideoPlayerBase = class extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
const isQRCodeVisible = playListInfo && qrCurrentItem;
|
||||
const isQRCodeVisible = playListInfo && qrCurrentItem && !thumbnailUrl;
|
||||
|
||||
const onSpotlightFocus = () => {
|
||||
this.showControls();
|
||||
|
||||
@@ -32,10 +32,11 @@ export default function PlayerOverlayQRCode({ qrCurrentItem, type, modalScale })
|
||||
const innerStylePosition = useMemo(() => {
|
||||
const { patnrId } = qrCurrentItem || {};
|
||||
let top, bottom, right, left;
|
||||
let transformOrigin = "top right";
|
||||
let transformOrigin = "";
|
||||
if (cntry_cd === "US" && (patnrId === "4" || patnrId === "11")) {
|
||||
top = 64;
|
||||
right = 80;
|
||||
transformOrigin = "top right";
|
||||
} else if (cntry_cd === "GB" && patnrId === "1") {
|
||||
bottom = 64;
|
||||
right = 120;
|
||||
@@ -55,7 +56,8 @@ export default function PlayerOverlayQRCode({ qrCurrentItem, type, modalScale })
|
||||
left = 74;
|
||||
transformOrigin = "top left";
|
||||
}
|
||||
} else {
|
||||
}
|
||||
if (!transformOrigin) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
@@ -76,7 +78,7 @@ export default function PlayerOverlayQRCode({ qrCurrentItem, type, modalScale })
|
||||
|
||||
return (
|
||||
<>
|
||||
{innerStylePosition && (
|
||||
{innerStylePosition && qrCurrentItem?.qrcodeUrl && (
|
||||
<div
|
||||
className={classNames(
|
||||
css.container,
|
||||
@@ -87,17 +89,15 @@ export default function PlayerOverlayQRCode({ qrCurrentItem, type, modalScale })
|
||||
)}
|
||||
style={innerStylePosition}
|
||||
>
|
||||
{qrCurrentItem && (
|
||||
<div>
|
||||
<TQRCode
|
||||
text={qrCurrentItem?.qrcodeUrl}
|
||||
width={width}
|
||||
height={height}
|
||||
ariaLabel="QR CODE, “SCAN TO SHOP” go to Shoptime App"
|
||||
/>
|
||||
<div className={css.text}>{label}</div>
|
||||
</div>
|
||||
)}
|
||||
<div>
|
||||
<TQRCode
|
||||
text={qrCurrentItem?.qrcodeUrl}
|
||||
width={width}
|
||||
height={height}
|
||||
ariaLabel="QR CODE, “SCAN TO SHOP” go to Shoptime App"
|
||||
/>
|
||||
<div className={css.text}>{label}</div>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user