[MobileSenPopUp] retCode 907 error message 수정
This commit is contained in:
@@ -1,62 +1,43 @@
|
|||||||
import React, {
|
import React, { useCallback, useEffect, useMemo, useState } from "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 {
|
import { useDispatch, useSelector } from "react-redux";
|
||||||
useDispatch,
|
|
||||||
useSelector,
|
|
||||||
} from 'react-redux';
|
|
||||||
|
|
||||||
import {
|
import { off, on } from "@enact/core/dispatcher";
|
||||||
off,
|
import { SpotlightContainerDecorator } from "@enact/spotlight/SpotlightContainerDecorator";
|
||||||
on,
|
import { Spottable } from "@enact/spotlight/Spottable";
|
||||||
} from '@enact/core/dispatcher';
|
|
||||||
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 {
|
import { clearSMS, sendSms } from "../../actions/appDataActions";
|
||||||
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 {
|
import { ACTIVE_POPUP, LOG_TP_NO } from "../../utils/Config";
|
||||||
ACTIVE_POPUP,
|
import { $L } from "../../utils/helperMethods";
|
||||||
LOG_TP_NO,
|
import CustomImage from "../CustomImage/CustomImage";
|
||||||
} from '../../utils/Config';
|
import TButton from "../TButton/TButton";
|
||||||
import { $L } from '../../utils/helperMethods';
|
import TPopUp from "../TPopUp/TPopUp";
|
||||||
import CustomImage from '../CustomImage/CustomImage';
|
import HistoryPhoneNumber from "./HistoryPhoneNumber/HistoryPhoneNumber";
|
||||||
import TButton from '../TButton/TButton';
|
import css from "./MobileSendPopUp.module.less";
|
||||||
import TPopUp from '../TPopUp/TPopUp';
|
import SMSNumKeyPad from "./SMSNumKeyPad";
|
||||||
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" },
|
||||||
@@ -446,6 +427,10 @@ export default function MobileSendPopUp({
|
|||||||
switch (smsRetCode) {
|
switch (smsRetCode) {
|
||||||
case 502:
|
case 502:
|
||||||
return SMS_ERROR_502;
|
return SMS_ERROR_502;
|
||||||
|
case 600:
|
||||||
|
return SMS_ERROR_600;
|
||||||
|
case 601:
|
||||||
|
return SMS_ERROR_601;
|
||||||
case 900:
|
case 900:
|
||||||
return SMS_ERROR_900;
|
return SMS_ERROR_900;
|
||||||
case 903:
|
case 903:
|
||||||
@@ -456,14 +441,8 @@ export default function MobileSendPopUp({
|
|||||||
return SMS_ERROR_905;
|
return SMS_ERROR_905;
|
||||||
case 906:
|
case 906:
|
||||||
return SMS_ERROR_906;
|
return SMS_ERROR_906;
|
||||||
case 907:
|
|
||||||
return SMS_ERROR_907;
|
|
||||||
case 600:
|
|
||||||
return SMS_ERROR_600;
|
|
||||||
case 601:
|
|
||||||
return SMS_ERROR_601;
|
|
||||||
default:
|
default:
|
||||||
return null;
|
return SMS_ERROR_900;
|
||||||
}
|
}
|
||||||
}, [smsRetCode]);
|
}, [smsRetCode]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user