[MobileSendPopUp]
- input 클릭 후 숫자 기재시 undefined 라고 표시되는 현상 수정 - last recentNumber 삭제 시 input 초기화 처리 - getDeviceAdditionInfo 호출 예외처리 - terms 문구 1.0 버전으로 수정
This commit is contained in:
@@ -222,5 +222,5 @@
|
|||||||
"If you do not wish to agree to these terms, please proceed to the LG Account.": "If you do not wish to agree to these terms, please proceed to the LG Account.",
|
"If you do not wish to agree to these terms, please proceed to the LG Account.": "If you do not wish to agree to these terms, please proceed to the LG Account.",
|
||||||
"If you do not wish to agree to these terms, please proceed to the following link.": "If you do not wish to agree to these terms, please proceed to the following link.",
|
"If you do not wish to agree to these terms, please proceed to the following link.": "If you do not wish to agree to these terms, please proceed to the following link.",
|
||||||
"Click the screen to see more products!": "Click the screen to see more products!",
|
"Click the screen to see more products!": "Click the screen to see more products!",
|
||||||
"By clicking Agree and Send button, I agree that LGE may collect and store my cell phone number to send text messages as I requested, for data analysis and for feature-enhancement purposes. By entering my cell phone number, I agree to receive messages from LGE with information on how to purchase the product I selected. Message and data rates may apply.": "By clicking \"Agree and Send\" button, I agree that LGE may collect and store my cell phone number to send text messages as I requested, for data analysis and for feature-enhancement purposes. \n By entering my cell phone number, I agree to receive messages from LGE with information on how to purchase the product I selected. Message and data rates may apply."
|
"By clicking Agree and Send button, I agree that LGE may collect and store my cell phone number to send text messages as I requested, for data analysis and for feature-enhancement purposes. By entering my cell phone number, I agree to receive messages from LGE with information on how to purchase the product I selected. Message and data rates may apply.": "By clicking \"Agree and Send\" button, I agree that LGE may collect and store my cell phone number to send text messages as I requested, for data analysis and for feature-enhancement purposes. <br/> By entering my cell phone number, I agree to receive messages from LGE with information on how to purchase the product I selected. Message and data rates may apply."
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,44 +1,63 @@
|
|||||||
import React, { useCallback, useEffect, useMemo, useState } from "react";
|
import React, {
|
||||||
|
useCallback,
|
||||||
|
useEffect,
|
||||||
|
useMemo,
|
||||||
|
useState,
|
||||||
|
} from 'react';
|
||||||
|
|
||||||
import classNames from "classnames";
|
import classNames from 'classnames';
|
||||||
import {
|
import {
|
||||||
AsYouTypeFormatter,
|
AsYouTypeFormatter,
|
||||||
PhoneNumberFormat,
|
PhoneNumberFormat,
|
||||||
PhoneNumberUtil,
|
PhoneNumberUtil,
|
||||||
} from "google-libphonenumber";
|
} from 'google-libphonenumber';
|
||||||
import { useDispatch, useSelector } from "react-redux";
|
import {
|
||||||
|
useDispatch,
|
||||||
|
useSelector,
|
||||||
|
} from 'react-redux';
|
||||||
|
|
||||||
import { off, on } from "@enact/core/dispatcher";
|
import {
|
||||||
import spotlight, { Spotlight } from "@enact/spotlight";
|
off,
|
||||||
import { SpotlightContainerDecorator } from "@enact/spotlight/SpotlightContainerDecorator";
|
on,
|
||||||
import { Spottable } from "@enact/spotlight/Spottable";
|
} from '@enact/core/dispatcher';
|
||||||
|
import spotlight, { Spotlight } from '@enact/spotlight';
|
||||||
|
import {
|
||||||
|
SpotlightContainerDecorator,
|
||||||
|
} from '@enact/spotlight/SpotlightContainerDecorator';
|
||||||
|
import { Spottable } from '@enact/spotlight/Spottable';
|
||||||
|
|
||||||
import defaultImage from "../../../assets/images/img-thumb-empty-144@3x.png";
|
import defaultImage from '../../../assets/images/img-thumb-empty-144@3x.png';
|
||||||
import { types } from "../../actions/actionTypes";
|
import { types } from '../../actions/actionTypes';
|
||||||
import { clearSMS, sendSms } from "../../actions/appDataActions";
|
import {
|
||||||
|
clearSMS,
|
||||||
|
sendSms,
|
||||||
|
} from '../../actions/appDataActions';
|
||||||
import {
|
import {
|
||||||
changeLocalSettings,
|
changeLocalSettings,
|
||||||
setHidePopup,
|
setHidePopup,
|
||||||
setShowPopup,
|
setShowPopup,
|
||||||
} from "../../actions/commonActions";
|
} from '../../actions/commonActions';
|
||||||
import {
|
import {
|
||||||
clearRegisterDeviceInfo,
|
clearRegisterDeviceInfo,
|
||||||
getDeviceAdditionInfo,
|
getDeviceAdditionInfo,
|
||||||
registerDeviceInfo,
|
registerDeviceInfo,
|
||||||
} from "../../actions/deviceActions";
|
} from '../../actions/deviceActions';
|
||||||
import {
|
import {
|
||||||
clearCurationCoupon,
|
clearCurationCoupon,
|
||||||
setEventIssueReq,
|
setEventIssueReq,
|
||||||
} from "../../actions/eventActions";
|
} from '../../actions/eventActions';
|
||||||
import useLogService from "../../hooks/useLogService";
|
import useLogService from '../../hooks/useLogService';
|
||||||
import { ACTIVE_POPUP, LOG_TP_NO } from "../../utils/Config";
|
import {
|
||||||
import { $L } from "../../utils/helperMethods";
|
ACTIVE_POPUP,
|
||||||
import CustomImage from "../CustomImage/CustomImage";
|
LOG_TP_NO,
|
||||||
import TButton from "../TButton/TButton";
|
} from '../../utils/Config';
|
||||||
import TPopUp from "../TPopUp/TPopUp";
|
import { $L } from '../../utils/helperMethods';
|
||||||
import HistoryPhoneNumber from "./HistoryPhoneNumber/HistoryPhoneNumber";
|
import CustomImage from '../CustomImage/CustomImage';
|
||||||
import css from "./MobileSendPopUp.module.less";
|
import TButton from '../TButton/TButton';
|
||||||
import SMSNumKeyPad from "./SMSNumKeyPad";
|
import TPopUp from '../TPopUp/TPopUp';
|
||||||
|
import HistoryPhoneNumber from './HistoryPhoneNumber/HistoryPhoneNumber';
|
||||||
|
import css from './MobileSendPopUp.module.less';
|
||||||
|
import SMSNumKeyPad from './SMSNumKeyPad';
|
||||||
|
|
||||||
const Container = SpotlightContainerDecorator(
|
const Container = SpotlightContainerDecorator(
|
||||||
{ enterTo: "last-focused" },
|
{ enterTo: "last-focused" },
|
||||||
@@ -117,7 +136,11 @@ export default function MobileSendPopUp({
|
|||||||
|
|
||||||
const handleInputClick = () => {
|
const handleInputClick = () => {
|
||||||
setKeyPadOff(false);
|
setKeyPadOff(false);
|
||||||
if (recentSentNumber) setMobileNumber(recentSentNumber[0]);
|
if (recentSentNumber && recentSentNumber.length > 0) {
|
||||||
|
setMobileNumber(recentSentNumber[0]);
|
||||||
|
} else {
|
||||||
|
setMobileNumber("");
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const getRawPhoneNumber = useCallback(
|
const getRawPhoneNumber = useCallback(
|
||||||
@@ -217,8 +240,10 @@ export default function MobileSendPopUp({
|
|||||||
}, [handleKeydown]);
|
}, [handleKeydown]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
if (!deviceInfo) {
|
||||||
dispatch(getDeviceAdditionInfo());
|
dispatch(getDeviceAdditionInfo());
|
||||||
}, [dispatch]);
|
}
|
||||||
|
}, [deviceInfo, dispatch]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (phoneNumberList) setRecentSentNumber(phoneNumberList);
|
if (phoneNumberList) setRecentSentNumber(phoneNumberList);
|
||||||
@@ -579,13 +604,7 @@ export default function MobileSendPopUp({
|
|||||||
<div className={css.instruction}>
|
<div className={css.instruction}>
|
||||||
<span>
|
<span>
|
||||||
{$L(
|
{$L(
|
||||||
"By clicking Agree and Send button below, I agree that LGE may collect and store my mobile number to send text messages as I requested, for data analysis, and for feature-enhancement purposes."
|
"By clicking Agree and Send button, I agree that LGE may collect and store my cell phone number to send text messages as I requested, for data analysis and for feature-enhancement purposes. By entering my cell phone number, I agree to receive messages from LGE with information on how to purchase the product I selected. Message and data rates may apply."
|
||||||
)}
|
|
||||||
</span>
|
|
||||||
<br />
|
|
||||||
<span>
|
|
||||||
{$L(
|
|
||||||
"By entering my mobile number, I agree to receive messages from LGE with information on how to purchase the product I selected. Message and data rates may apply."
|
|
||||||
)}
|
)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user