Compare commits
4 Commits
02b3d2faa4
...
1b0f9b578d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1b0f9b578d | ||
|
|
73fffdb56d | ||
|
|
c8a5738fdc | ||
|
|
d896de54fc |
@@ -1,4 +1,6 @@
|
|||||||
VITE_APP_ENV=development
|
VITE_APP_ENV=development
|
||||||
VITE_APP_AUTH_PROXY_HOST='https://auth.nicepay.co.kr'
|
# VITE_APP_AUTH_PROXY_HOST='https://auth.nicepay.co.kr'
|
||||||
VITE_APP_API_PROXY_HOST='https://rest.nicepay.co.kr'
|
# VITE_APP_API_PROXY_HOST='https://rest.nicepay.co.kr'
|
||||||
|
VITE_APP_AUTH_PROXY_HOST='https://auth.dev-nicepay.co.kr'
|
||||||
|
VITE_APP_API_PROXY_HOST='https://rest.dev-nicepay.co.kr'
|
||||||
GENERATE_SOURCEMAP=false
|
GENERATE_SOURCEMAP=false
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
VITE_APP_ENV=production
|
VITE_APP_ENV=production
|
||||||
VITE_APP_AUTH_PROXY_HOST='https://npgm.nicepay.co.kr'
|
# VITE_APP_AUTH_PROXY_HOST='https://npgm.nicepay.co.kr'
|
||||||
VITE_APP_API_PROXY_HOST='https://npgm.nicepay.co.kr'
|
# VITE_APP_API_PROXY_HOST='https://npgm.nicepay.co.kr'
|
||||||
# VITE_APP_AUTH_PROXY_HOST='http://3.35.79.250:8090'
|
VITE_APP_AUTH_PROXY_HOST='https://auth.dev-nicepay.co.kr'
|
||||||
# VITE_APP_API_PROXY_HOST='http://3.35.79.250:8080'
|
VITE_APP_API_PROXY_HOST='https://rest.dev-nicepay.co.kr'
|
||||||
# VITE_APP_AUTH_PROXY_HOST='https://auth.nicepay.co.kr'
|
|
||||||
# VITE_APP_API_PROXY_HOST='https://rest.nicepay.co.kr'
|
|
||||||
GENERATE_SOURCEMAP=false
|
GENERATE_SOURCEMAP=false
|
||||||
BIN
public/images/splash_banner.png
Normal file
BIN
public/images/splash_banner.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 768 KiB |
@@ -6,6 +6,7 @@ import { useExtensionSmsResendMutation } from '../../api/sms-payment/use-extensi
|
|||||||
import { snackBar } from '@/shared/lib';
|
import { snackBar } from '@/shared/lib';
|
||||||
import { showAlert } from '@/widgets/show-alert';
|
import { showAlert } from '@/widgets/show-alert';
|
||||||
import { checkGrant } from '@/shared/lib/check-grant';
|
import { checkGrant } from '@/shared/lib/check-grant';
|
||||||
|
import { useState, useEffect } from 'react';
|
||||||
|
|
||||||
export const SmsPaymentDetailResend = ({
|
export const SmsPaymentDetailResend = ({
|
||||||
bottomSmsPaymentDetailResendOn,
|
bottomSmsPaymentDetailResendOn,
|
||||||
@@ -14,6 +15,7 @@ export const SmsPaymentDetailResend = ({
|
|||||||
seq
|
seq
|
||||||
}: SmsPaymentDetailResendProps) => {
|
}: SmsPaymentDetailResendProps) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
const [editableMessage, setEditableMessage] = useState<string>('');
|
||||||
|
|
||||||
const variants = {
|
const variants = {
|
||||||
hidden: { y: '100%' },
|
hidden: { y: '100%' },
|
||||||
@@ -22,9 +24,14 @@ export const SmsPaymentDetailResend = ({
|
|||||||
|
|
||||||
const { mutateAsync: resendMessage } = useExtensionSmsResendMutation();
|
const { mutateAsync: resendMessage } = useExtensionSmsResendMutation();
|
||||||
|
|
||||||
|
// smsDetailData가 변경되면 editableMessage 업데이트
|
||||||
|
useEffect(() => {
|
||||||
|
setEditableMessage(smsDetailData?.sendMessage || '');
|
||||||
|
}, [smsDetailData?.sendMessage]);
|
||||||
|
|
||||||
const onClickResend = () => {
|
const onClickResend = () => {
|
||||||
// sendMessage가 없으면 재발송 불가
|
// editableMessage가 없으면 재발송 불가
|
||||||
if (!smsDetailData?.sendMessage) {
|
if (!editableMessage || !editableMessage.trim()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -35,7 +42,7 @@ export const SmsPaymentDetailResend = ({
|
|||||||
|
|
||||||
resendMessage({
|
resendMessage({
|
||||||
seq: seq,
|
seq: seq,
|
||||||
sendMessage: smsDetailData.sendMessage
|
sendMessage: editableMessage
|
||||||
}).then((rs) => {
|
}).then((rs) => {
|
||||||
if (rs.status) {
|
if (rs.status) {
|
||||||
snackBar(t('additionalService.sms.sendSuccess'))
|
snackBar(t('additionalService.sms.sendSuccess'))
|
||||||
@@ -90,14 +97,20 @@ export const SmsPaymentDetailResend = ({
|
|||||||
<div className="resend-row">{t('additionalService.sms.receiver')} : {smsDetailData?.receiverName || '-'}({smsDetailData?.receiverNumber || '-'})</div>
|
<div className="resend-row">{t('additionalService.sms.receiver')} : {smsDetailData?.receiverName || '-'}({smsDetailData?.receiverNumber || '-'})</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="resend-box">
|
<div className="resend-box">
|
||||||
<p className="resend-text">{smsDetailData?.sendMessage || '-'}</p>
|
<textarea
|
||||||
|
className="resend-text"
|
||||||
|
value={editableMessage}
|
||||||
|
onChange={(e) => setEditableMessage(e.target.value)}
|
||||||
|
placeholder="-"
|
||||||
|
style={{ border: 'none', outline: 'none' }}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="bottomsheet-footer">
|
<div className="bottomsheet-footer">
|
||||||
<button
|
<button
|
||||||
className={`btn-50 flex-1 ${smsDetailData?.sendMessage ? 'btn-blue' : 'btn-gray'}`}
|
className={`btn-50 flex-1 ${editableMessage && editableMessage.trim() ? 'btn-blue' : 'btn-gray'}`}
|
||||||
type="button"
|
type="button"
|
||||||
onClick={onClickResend}
|
onClick={onClickResend}
|
||||||
disabled={!smsDetailData?.sendMessage}
|
disabled={!editableMessage || !editableMessage.trim()}
|
||||||
>
|
>
|
||||||
{t('additionalService.sms.smsResendButton')}
|
{t('additionalService.sms.smsResendButton')}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ export const PayoutListPage = () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const onClickToNavigation = () => {
|
const onClickToNavigation = () => {
|
||||||
if (!checkGrant(53, 'X')) {
|
if (!checkGrant(53, 'X') || !checkGrant(53, 'W')) {
|
||||||
showAlert(t('common.nopermission'));
|
showAlert(t('common.nopermission'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ export const SmsPaymentPage = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const onClickToShowDetail = (selectedSeq: number) => {
|
const onClickToShowDetail = (selectedSeq: number) => {
|
||||||
if (!checkGrant(57, 'W')) {
|
if (!checkGrant(57, 'X') || !checkGrant(57, 'W')) {
|
||||||
showAlert(t('common.nopermission'));
|
showAlert(t('common.nopermission'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user