From b891bc11cb0205abba8f831feba4c90e9a71b6df Mon Sep 17 00:00:00 2001 From: "focp212@naver.com" Date: Mon, 17 Nov 2025 14:04:29 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=90=EC=8A=A4=ED=81=AC=EB=A1=9C=20?= =?UTF-8?q?=EB=A9=94=EC=9D=BC=20=EC=9E=AC=EB=B0=9C=EC=86=A1=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ash-receit-purpose-update-bottom-sheet.tsx | 2 +- .../transaction/ui/detail/escrow-detail.tsx | 9 ++-- .../ui/escrow-mail-resend-bottom-sheet.tsx | 52 ++++++++----------- 3 files changed, 26 insertions(+), 37 deletions(-) diff --git a/src/entities/transaction/ui/cash-receit-purpose-update-bottom-sheet.tsx b/src/entities/transaction/ui/cash-receit-purpose-update-bottom-sheet.tsx index 4a1e42d..04285ca 100644 --- a/src/entities/transaction/ui/cash-receit-purpose-update-bottom-sheet.tsx +++ b/src/entities/transaction/ui/cash-receit-purpose-update-bottom-sheet.tsx @@ -23,7 +23,7 @@ export const CashReceitPurposeUpdateBottomSheet = ({ setBottomSheetOn(false); }; const onCliickToPurposeUpdate = () => { - if(checkGrant(menuId, 'X')){ + if(checkGrant(menuId, 'W')){ callPurposeUpdate(); } else{ diff --git a/src/entities/transaction/ui/detail/escrow-detail.tsx b/src/entities/transaction/ui/detail/escrow-detail.tsx index 6054f00..d55aec2 100644 --- a/src/entities/transaction/ui/detail/escrow-detail.tsx +++ b/src/entities/transaction/ui/detail/escrow-detail.tsx @@ -104,7 +104,7 @@ export const EscrowDetail = ({ const onClickToShowMailResend = () => { - if(checkGrant(menuId, 'W')){ + if(checkGrant(menuId, 'X')){ setDownloadBottomSheetOn(true); } else{ @@ -118,7 +118,7 @@ export const EscrowDetail = ({ tid: tid, }; escrowMailResend(params).then((rs: EscrowMailResendResponse) => { - snackBar('이메일 재전송 요청에 성공하였습니다.'); + snackBar('메일 재발송을 성공하였습니다.'); }).catch((e: any) => { if(e.response?.data?.error?.message){ snackBar(e.response?.data?.error?.message); @@ -231,10 +231,7 @@ export const EscrowDetail = ({ diff --git a/src/entities/transaction/ui/escrow-mail-resend-bottom-sheet.tsx b/src/entities/transaction/ui/escrow-mail-resend-bottom-sheet.tsx index ab819e2..1d9b16e 100644 --- a/src/entities/transaction/ui/escrow-mail-resend-bottom-sheet.tsx +++ b/src/entities/transaction/ui/escrow-mail-resend-bottom-sheet.tsx @@ -1,4 +1,6 @@ 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 { useTranslation } from 'react-i18next'; @@ -8,6 +10,7 @@ export interface EscrowMailResendBottomSheetProps { callMailResend: () => void; }; +const menuId = 33; export const EscrowMailResendBottomSheet = ({ bottomSheetOn, setBottomSheetOn, @@ -19,7 +22,12 @@ export const EscrowMailResendBottomSheet = ({ setBottomSheetOn(false); }; const onClickToMailResend = () => { - callMailResend(); + if(checkGrant(menuId, 'W')){ + callMailResend(); + } + else{ + showAlert(t('common.nopermission')); + } }; const variants = { @@ -30,7 +38,9 @@ export const EscrowMailResendBottomSheet = ({ return ( <> { (bottomSheetOn) && -
+
}
-

{ t('transaction.bottomSheet.escrowMailResend.title') }

+

메일 재발송

@@ -56,31 +66,13 @@ export const EscrowMailResendBottomSheet = ({
-
-
-
-
- { -
- { t('transaction.bottomSheet.escrowMailResend.mailLabel') } -
- -
-
- -
-
- -
-

{ t('transaction.bottomSheet.escrowMailResend.errorNoEmail') }

-
+
+

+ 메일 미수신 고객에게 에스크로 메일 재발송이 가능합니다. +
+
+ 메일을 재발송 하시겠습니까? +

@@ -89,7 +81,7 @@ export const EscrowMailResendBottomSheet = ({ className="btn-50 btn-blue flex-1" type="button" onClick={ () => onClickToMailResend() } - >{ t('transaction.submit') } + >재발송