에스크로 메일 재발송 수정
This commit is contained in:
@@ -23,7 +23,7 @@ export const CashReceitPurposeUpdateBottomSheet = ({
|
|||||||
setBottomSheetOn(false);
|
setBottomSheetOn(false);
|
||||||
};
|
};
|
||||||
const onCliickToPurposeUpdate = () => {
|
const onCliickToPurposeUpdate = () => {
|
||||||
if(checkGrant(menuId, 'X')){
|
if(checkGrant(menuId, 'W')){
|
||||||
callPurposeUpdate();
|
callPurposeUpdate();
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ export const EscrowDetail = ({
|
|||||||
|
|
||||||
|
|
||||||
const onClickToShowMailResend = () => {
|
const onClickToShowMailResend = () => {
|
||||||
if(checkGrant(menuId, 'W')){
|
if(checkGrant(menuId, 'X')){
|
||||||
setDownloadBottomSheetOn(true);
|
setDownloadBottomSheetOn(true);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
@@ -118,7 +118,7 @@ export const EscrowDetail = ({
|
|||||||
tid: tid,
|
tid: tid,
|
||||||
};
|
};
|
||||||
escrowMailResend(params).then((rs: EscrowMailResendResponse) => {
|
escrowMailResend(params).then((rs: EscrowMailResendResponse) => {
|
||||||
snackBar('이메일 재전송 요청에 성공하였습니다.');
|
snackBar('메일 재발송을 성공하였습니다.');
|
||||||
}).catch((e: any) => {
|
}).catch((e: any) => {
|
||||||
if(e.response?.data?.error?.message){
|
if(e.response?.data?.error?.message){
|
||||||
snackBar(e.response?.data?.error?.message);
|
snackBar(e.response?.data?.error?.message);
|
||||||
@@ -231,10 +231,7 @@ export const EscrowDetail = ({
|
|||||||
<button
|
<button
|
||||||
className="btn-50 btn-blue flex-1"
|
className="btn-50 btn-blue flex-1"
|
||||||
onClick={ () => onClickToShowMailResend() }
|
onClick={ () => onClickToShowMailResend() }
|
||||||
disabled={
|
|
||||||
escrowInfo?.deliveryStatus !== EscrowDeliveryStatus.DELIVERY_INSERT &&
|
|
||||||
escrowInfo?.deliveryStatus !== EscrowDeliveryStatus.DELIVERY_COMPLETE
|
|
||||||
}
|
|
||||||
>{ t('escrow.mailResend') }</button>
|
>{ t('escrow.mailResend') }</button>
|
||||||
</div>
|
</div>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
import { IMAGE_ROOT } from '@/shared/constants/common';
|
import { IMAGE_ROOT } from '@/shared/constants/common';
|
||||||
|
import { checkGrant } from '@/shared/lib/check-grant';
|
||||||
|
import { showAlert } from '@/widgets/show-alert';
|
||||||
import { motion } from 'framer-motion';
|
import { motion } from 'framer-motion';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
@@ -8,6 +10,7 @@ export interface EscrowMailResendBottomSheetProps {
|
|||||||
callMailResend: () => void;
|
callMailResend: () => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const menuId = 33;
|
||||||
export const EscrowMailResendBottomSheet = ({
|
export const EscrowMailResendBottomSheet = ({
|
||||||
bottomSheetOn,
|
bottomSheetOn,
|
||||||
setBottomSheetOn,
|
setBottomSheetOn,
|
||||||
@@ -19,7 +22,12 @@ export const EscrowMailResendBottomSheet = ({
|
|||||||
setBottomSheetOn(false);
|
setBottomSheetOn(false);
|
||||||
};
|
};
|
||||||
const onClickToMailResend = () => {
|
const onClickToMailResend = () => {
|
||||||
callMailResend();
|
if(checkGrant(menuId, 'W')){
|
||||||
|
callMailResend();
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
showAlert(t('common.nopermission'));
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const variants = {
|
const variants = {
|
||||||
@@ -30,7 +38,9 @@ export const EscrowMailResendBottomSheet = ({
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{ (bottomSheetOn) &&
|
{ (bottomSheetOn) &&
|
||||||
<div className="bg-dim"></div>
|
<div className="bg-dim"
|
||||||
|
style={{ zIndex: 1020 }}
|
||||||
|
></div>
|
||||||
}
|
}
|
||||||
<motion.div
|
<motion.div
|
||||||
className="bottomsheet"
|
className="bottomsheet"
|
||||||
@@ -41,14 +51,14 @@ export const EscrowMailResendBottomSheet = ({
|
|||||||
>
|
>
|
||||||
<div className="bottomsheet-header">
|
<div className="bottomsheet-header">
|
||||||
<div className="bottomsheet-title">
|
<div className="bottomsheet-title">
|
||||||
<h2>{ t('transaction.bottomSheet.escrowMailResend.title') }</h2>
|
<h2>메일 재발송</h2>
|
||||||
<button
|
<button
|
||||||
className="close-btn"
|
className="close-btn"
|
||||||
type="button"
|
type="button"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
src={ IMAGE_ROOT + '/ico_close.svg' }
|
src={ IMAGE_ROOT + '/ico_close.svg' }
|
||||||
alt={ t('transaction.bottomSheet.escrowMailResend.close') }
|
alt={ t('common.close') }
|
||||||
onClick={ () => onClickToClose() }
|
onClick={ () => onClickToClose() }
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
@@ -56,31 +66,13 @@ export const EscrowMailResendBottomSheet = ({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="bottomsheet-content">
|
<div className="bottomsheet-content">
|
||||||
<div className="email-section">
|
<div className="bottom-section">
|
||||||
<div className="email-label">
|
<p>
|
||||||
<div className="mail-icon">
|
메일 미수신 고객에게 에스크로 메일 재발송이 가능합니다.
|
||||||
<div className="mail-icon-bg"></div>
|
<br />
|
||||||
<img
|
<br />
|
||||||
src={ IMAGE_ROOT +'/ico_email.svg' }
|
메일을 재발송 하시겠습니까?
|
||||||
alt={ t('transaction.bottomSheet.escrowMailResend.mail') }
|
</p>
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<span className="label-text">{ t('transaction.bottomSheet.escrowMailResend.mailLabel') }</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="email-select">
|
|
||||||
<div className="select-wrapper">
|
|
||||||
<select>
|
|
||||||
<option>{ t('transaction.bottomSheet.escrowMailResend.select') }</option>
|
|
||||||
<option>{ t('transaction.bottomSheet.escrowMailResend.select') }1</option>
|
|
||||||
<option>{ t('transaction.bottomSheet.escrowMailResend.select') }2</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="error-message">
|
|
||||||
<p>{ t('transaction.bottomSheet.escrowMailResend.errorNoEmail') }</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -89,7 +81,7 @@ export const EscrowMailResendBottomSheet = ({
|
|||||||
className="btn-50 btn-blue flex-1"
|
className="btn-50 btn-blue flex-1"
|
||||||
type="button"
|
type="button"
|
||||||
onClick={ () => onClickToMailResend() }
|
onClick={ () => onClickToMailResend() }
|
||||||
>{ t('transaction.submit') }</button>
|
>재발송</button>
|
||||||
</div>
|
</div>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in New Issue
Block a user