This commit is contained in:
focp212@naver.com
2025-11-05 17:00:29 +09:00
22 changed files with 39 additions and 25 deletions

View File

@@ -141,7 +141,7 @@ export const QnaListPage = () => {
navigate(PATHS.support.qna.register);
}
else{
showAlert('권한이 없습니다.');
showAlert(t('common.nopermission'));
}
};

View File

@@ -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();
};

View File

@@ -181,7 +181,7 @@ export const AllTransactionListPage = () => {
setEmailBottomSheetOn(true);
}
else{
showAlert('권한이 없습니다.');
showAlert(t('common.nopermission'));
}
};
const onRequestDownloadExcel = (userEmail?: string) => {

View File

@@ -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'));
}
};

View File

@@ -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'));
}
};

View File

@@ -152,7 +152,7 @@ export const EscrowListPage = () => {
setEmailBottomSheetOn(true);
}
else{
showAlert('권한이 없습니다.');
showAlert(t('common.nopermission'));
}
};
const onRequestDownloadExcel = (userEmail?: string) => {