logaction

This commit is contained in:
yonghyon
2024-07-16 16:07:39 +09:00
parent ec354e1f5c
commit 98d5b25b1e
6 changed files with 900 additions and 26 deletions

View File

@@ -46,7 +46,6 @@ import {
clearCurationCoupon,
setEventIssueReq,
} from '../../actions/eventActions';
import useLogService from '../../hooks/useLogService';
import {
ACTIVE_POPUP,
LOG_TP_NO,
@@ -58,6 +57,7 @@ import TPopUp from '../TPopUp/TPopUp';
import HistoryPhoneNumber from './HistoryPhoneNumber/HistoryPhoneNumber';
import css from './MobileSendPopUp.module.less';
import SMSNumKeyPad from './SMSNumKeyPad';
import { sendLogShopByMobile } from '../../actions/logActions';
const Container = SpotlightContainerDecorator(
{ enterTo: "last-focused" },
@@ -92,7 +92,6 @@ export default function MobileSendPopUp({
shopByMobileLogRef,
spotlightId,
}) {
const { sendLogShopByMobile } = useLogService();
const deviceInfo = useSelector((state) => state.device.deviceInfo);
const [mobileNumber, setMobileNumber] = useState("");
const [recentSentNumber, setRecentSentNumber] = useState([]);
@@ -425,7 +424,7 @@ export default function MobileSendPopUp({
trmsAgrFlag: "Y",
};
sendLogShopByMobile(params);
dispatch(sendLogShopByMobile(params));
shopByMobileLogRef.current = null;
if (spotlightId) {
@@ -437,7 +436,6 @@ export default function MobileSendPopUp({
return () => clearTimeout(timer);
}
}, [
sendLogShopByMobile,
shopByMobileLogRef,
smsRetCodeResData,
regDeviceInfoRetCode,