[TQRCode] QRCode length error
This commit is contained in:
@@ -40,6 +40,7 @@ export default function TQRCode({
|
||||
text: `${text}&entryMenu=${entryMenu}&nowMenu=${encodedNowMenu}&idx=${deviceInfo.dvcIndex}`,
|
||||
width: scaleW(width),
|
||||
height: scaleH(height),
|
||||
correctLevel: window.QRCode.CorrectLevel.L,
|
||||
});
|
||||
}
|
||||
}, [text, deviceInfo]);
|
||||
|
||||
@@ -280,11 +280,11 @@ export default function HotelOption({
|
||||
</div>
|
||||
<div className={css.qrcodeContainer}>
|
||||
{/* 호텔 QRCode 데이터만 서버에서 다르게 내려주고있어서 에러남 / 해결되면 주석제거 */}
|
||||
{/* <TQRCode
|
||||
<TQRCode
|
||||
text={hotelInfos[selectedIndex]?.qrcodeUrl}
|
||||
width="160"
|
||||
height="160"
|
||||
/> */}
|
||||
/>
|
||||
<div className={css.tooltip}>
|
||||
<div className={css.tooltipBody}>{tooltipDes}</div>
|
||||
</div>
|
||||
|
||||
@@ -231,12 +231,16 @@ export default function UnableOption({
|
||||
{/* QR */}
|
||||
{!TYPE_CASE.case9 && (
|
||||
<div className={css.qrWrapper}>
|
||||
<TQRCode
|
||||
text={productInfo?.qrcodeUrl}
|
||||
menu={"DetailPage"}
|
||||
width="252"
|
||||
height="252"
|
||||
/>
|
||||
{productInfo?.qrImgUrl
|
||||
? productInfo?.qrImgUrl
|
||||
: productInfo?.qrcodeUrl && (
|
||||
<TQRCode
|
||||
text={productInfo?.qrcodeUrl}
|
||||
width="252"
|
||||
height="252"
|
||||
/>
|
||||
)}
|
||||
|
||||
<div className={css.tooltip}>
|
||||
<div className={css.tooltipBody}>{tooltipDes}</div>
|
||||
</div>
|
||||
|
||||
@@ -210,7 +210,6 @@ export default function IndicatorOptions({
|
||||
: productInfo?.qrcodeUrl && (
|
||||
<TQRCode
|
||||
text={productInfo?.qrcodeUrl}
|
||||
menu={"DetailPage"}
|
||||
width="160"
|
||||
height="160"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user