Merge branch 'main' of https://gitea.bpsoft.co.kr/nicepayments/nice-app-web
This commit is contained in:
@@ -141,7 +141,7 @@ export const QnaListPage = () => {
|
||||
navigate(PATHS.support.qna.register);
|
||||
}
|
||||
else{
|
||||
showAlert('권한이 없습니다.');
|
||||
showAlert(t('common.nopermission'));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import { PATHS } from '@/shared/constants/paths';
|
||||
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
|
||||
import { useQnaSaveMutation } from '@/entities/support/api/use-qna-save-mutation';
|
||||
import { HeaderType } from '@/entities/common/model/types';
|
||||
import {
|
||||
import {
|
||||
useSetHeaderTitle,
|
||||
useSetHeaderType,
|
||||
useSetFooterMode,
|
||||
@@ -15,6 +15,7 @@ import { PatternFormat } from 'react-number-format';
|
||||
import { overlay } from 'overlay-kit';
|
||||
import { Dialog } from '@/shared/ui/dialogs/dialog';
|
||||
import { QnaSaveParams, QnaSaveResponse } from '@/entities/support/model/types';
|
||||
import { checkGrant } from '@/shared/lib/check-grant';
|
||||
|
||||
export enum QnaRegisterPropsName {
|
||||
Mid = 'Mid',
|
||||
@@ -142,6 +143,10 @@ export const QnaRegisterPage = () => {
|
||||
};
|
||||
|
||||
const onClickToRegisterQna = () => {
|
||||
if (!checkGrant(64, 'X')) {
|
||||
showAlert(t('common.noPermission'));
|
||||
return;
|
||||
}
|
||||
callRegister();
|
||||
};
|
||||
|
||||
|
||||
@@ -181,7 +181,7 @@ export const AllTransactionListPage = () => {
|
||||
setEmailBottomSheetOn(true);
|
||||
}
|
||||
else{
|
||||
showAlert('권한이 없습니다.');
|
||||
showAlert(t('common.nopermission'));
|
||||
}
|
||||
};
|
||||
const onRequestDownloadExcel = (userEmail?: string) => {
|
||||
|
||||
@@ -152,7 +152,7 @@ export const BillingListPage = () => {
|
||||
setDownloadBottomSheetOn(true);
|
||||
}
|
||||
else{
|
||||
showAlert('권한이 없습니다.');
|
||||
showAlert(t('common.nopermission'));
|
||||
}
|
||||
};
|
||||
const onClickToSort = (sort: SortTypeKeys) => {
|
||||
@@ -167,7 +167,7 @@ export const BillingListPage = () => {
|
||||
navigate(PATHS.transaction.billing.charge);
|
||||
}
|
||||
else{
|
||||
showAlert('권한이 없습니다.');
|
||||
showAlert(t('common.nopermission'));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -182,7 +182,7 @@ export const CashReceiptListPage = () => {
|
||||
setEmailBottomSheetOn(true);
|
||||
}
|
||||
else{
|
||||
showAlert('권한이 없습니다.');
|
||||
showAlert(t('common.nopermission'));
|
||||
}
|
||||
};
|
||||
const onClickToSort = (sort: SortTypeKeys) => {
|
||||
@@ -197,7 +197,7 @@ export const CashReceiptListPage = () => {
|
||||
navigate(PATHS.transaction.cashReceipt.handWrittenIssuance);
|
||||
}
|
||||
else{
|
||||
showAlert('권한이 없습니다.');
|
||||
showAlert(t('common.nopermission'));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -152,7 +152,7 @@ export const EscrowListPage = () => {
|
||||
setEmailBottomSheetOn(true);
|
||||
}
|
||||
else{
|
||||
showAlert('권한이 없습니다.');
|
||||
showAlert(t('common.nopermission'));
|
||||
}
|
||||
};
|
||||
const onRequestDownloadExcel = (userEmail?: string) => {
|
||||
|
||||
Reference in New Issue
Block a user