- 부가서비스 접근 권한 체크 및 제한 주석 해제

- 제한 다이얼로그 텍스트 영문 적용
This commit is contained in:
HyeonJongKim
2025-10-30 17:41:11 +09:00
parent 0d43510307
commit e2a4430821
11 changed files with 36 additions and 34 deletions

View File

@@ -162,9 +162,9 @@ export const AccountHolderAuthPage = () => {
sortType
]);
// if (!hasAccess) {
// return <AccessDeniedDialog />;
// }
if (!hasAccess) {
return <AccessDeniedDialog />;
}
return (
<>

View File

@@ -174,9 +174,9 @@ export const AccountHolderSearchPage = () => {
sortType
]);
// if (!hasAccess) {
// return <AccessDeniedDialog />;
// }
if (!hasAccess) {
return <AccessDeniedDialog />;
}
return (
<>

View File

@@ -228,9 +228,9 @@ export const AlimtalkListPage = () => {
sendCl
]);
// if (!hasAccess) {
// return <AccessDeniedDialog />;
// }
if (!hasAccess) {
return <AccessDeniedDialog />;
}
return (
<>

View File

@@ -226,9 +226,9 @@ export const ArsListPage = () => {
return rs;
}
// if (!hasAccess) {
// return <AccessDeniedDialog />;
// }
if (!hasAccess) {
return <AccessDeniedDialog />;
}
return (
<>

View File

@@ -211,9 +211,9 @@ export const FaceAuthPage = () => {
sortType
]);
// if (!hasAccess) {
// return <AccessDeniedDialog />;
// }
if (!hasAccess) {
return <AccessDeniedDialog />;
}
return (
<>

View File

@@ -28,9 +28,9 @@ export const FundAccountTransferListPage = () => {
navigate(PATHS.home);
});
// if (!hasAccess) {
// return <AccessDeniedDialog />;
// }
if (!hasAccess) {
return <AccessDeniedDialog />;
}
return (
<>

View File

@@ -172,9 +172,9 @@ export const KeyInPaymentPage = () => {
sortType
]);
// if (!hasAccess) {
// return <AccessDeniedDialog />;
// }
if (!hasAccess) {
return <AccessDeniedDialog />;
}
return (

View File

@@ -35,9 +35,9 @@ export const LinkPaymentHistoryPage = () => {
navigate(PATHS.home);
});
// if(!hasAccess){
// return <AccessDeniedDialog />;
// }
if(!hasAccess){
return <AccessDeniedDialog />;
}
return (
<>

View File

@@ -222,9 +222,9 @@ export const PayoutListPage = () => {
return rs;
};
// if (!hasAccess) {
// return <AccessDeniedDialog />;
// }
if (!hasAccess) {
return <AccessDeniedDialog />;
}
return (
<>

View File

@@ -178,9 +178,9 @@ export const SmsPaymentPage = () => {
smsCl
]);
// if (!hasAccess) {
// return <AccessDeniedDialog />;
// }
if (!hasAccess) {
return <AccessDeniedDialog />;
}
return (
<>

View File

@@ -3,6 +3,7 @@ import { useNavigate } from '@/shared/lib/hooks/use-navigate';
import { useExtensionCheckMutation } from '@/entities/additional-service/api/use-extension-check-mutation';
import { Dialog } from '@/shared/ui/dialogs/dialog';
import { PATHS } from '@/shared/constants/paths';
import { useTranslation } from 'react-i18next';
interface UseExtensionAccessCheckProps {
extensionCode: string;
@@ -24,6 +25,7 @@ export const useExtensionAccessCheck = ({
enabled = true
}: UseExtensionAccessCheckProps): UseExtensionAccessCheckReturn => {
const { navigate } = useNavigate();
const { t } = useTranslation();
const { mutateAsync: extensionCheck } = useExtensionCheckMutation();
const [hasAccess, setHasAccess] = useState<boolean | null>(null);
@@ -76,16 +78,16 @@ export const useExtensionAccessCheck = ({
return (
<Dialog
open={dialogOpen}
onClose={() => {}}
onClose={() => { }}
message={
<>
.<br />
.
{t('additionalService.notActiveServiceMessage')}<br />
{t('additionalService.contactSalesMessage')}
</>
}
buttonLabel={['확인']}
onConfirmClick={handleConfirm}
afterLeave={() => {}}
afterLeave={() => { }}
/>
);
};