[DetailPanel] 로그인 팝업 getQRCodeUrl 적용
This commit is contained in:
@@ -33,7 +33,7 @@ import TScroller from "../../../components/TScroller/TScroller";
|
||||
import TVirtualGridList from "../../../components/TVirtualGridList/TVirtualGridList";
|
||||
import usePriceInfo from "../../../hooks/usePriceInfo";
|
||||
import * as Config from "../../../utils/Config";
|
||||
import { $L } from "../../../utils/helperMethods";
|
||||
import { $L, getQRCodeUrl } from "../../../utils/helperMethods";
|
||||
import { SpotlightIds } from "../../../utils/SpotlightIds";
|
||||
import FavoriteBtn from "../components/FavoriteBtn";
|
||||
import css from "./SingleOption.module.less";
|
||||
@@ -93,7 +93,12 @@ export default function SingleOption({
|
||||
const webOSVersion = useSelector(
|
||||
(state) => state.common.appStatus.webOSVersion
|
||||
);
|
||||
const serverType = useSelector((state) => state.localSettings.serverType);
|
||||
const countryCode = useSelector(
|
||||
(state) => state.common.httpHeader.countryCode
|
||||
);
|
||||
|
||||
const { detailUrl } = getQRCodeUrl({ serverType, countryCode });
|
||||
useEffect(() => {
|
||||
const newPromotions = [];
|
||||
if (partnerCoupon && partnerCoupon.length > 0) {
|
||||
@@ -750,11 +755,7 @@ export default function SingleOption({
|
||||
|
||||
<div className={css.qrcodeContainer}>
|
||||
<div className={css.qrcode}>
|
||||
<TQRCode
|
||||
text={`http://qt3-m.shoptime.lgappstv.com/checkout.jsp?patnrId=${selectedPatnrId}&prdtId=${selectedPrdtId}&dirPurcSelYn=Y`}
|
||||
width="360"
|
||||
height="360"
|
||||
/>
|
||||
<TQRCode text={detailUrl} width="360" height="360" />
|
||||
</div>
|
||||
|
||||
<h3>
|
||||
|
||||
Reference in New Issue
Block a user