- 부가서비스 접근 권한 체크 및 제한 주석 해제
- 제한 다이얼로그 텍스트 영문 적용
This commit is contained in:
@@ -162,9 +162,9 @@ export const AccountHolderAuthPage = () => {
|
|||||||
sortType
|
sortType
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// if (!hasAccess) {
|
if (!hasAccess) {
|
||||||
// return <AccessDeniedDialog />;
|
return <AccessDeniedDialog />;
|
||||||
// }
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -174,9 +174,9 @@ export const AccountHolderSearchPage = () => {
|
|||||||
sortType
|
sortType
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// if (!hasAccess) {
|
if (!hasAccess) {
|
||||||
// return <AccessDeniedDialog />;
|
return <AccessDeniedDialog />;
|
||||||
// }
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -228,9 +228,9 @@ export const AlimtalkListPage = () => {
|
|||||||
sendCl
|
sendCl
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// if (!hasAccess) {
|
if (!hasAccess) {
|
||||||
// return <AccessDeniedDialog />;
|
return <AccessDeniedDialog />;
|
||||||
// }
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -226,9 +226,9 @@ export const ArsListPage = () => {
|
|||||||
return rs;
|
return rs;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (!hasAccess) {
|
if (!hasAccess) {
|
||||||
// return <AccessDeniedDialog />;
|
return <AccessDeniedDialog />;
|
||||||
// }
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -211,9 +211,9 @@ export const FaceAuthPage = () => {
|
|||||||
sortType
|
sortType
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// if (!hasAccess) {
|
if (!hasAccess) {
|
||||||
// return <AccessDeniedDialog />;
|
return <AccessDeniedDialog />;
|
||||||
// }
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -28,9 +28,9 @@ export const FundAccountTransferListPage = () => {
|
|||||||
navigate(PATHS.home);
|
navigate(PATHS.home);
|
||||||
});
|
});
|
||||||
|
|
||||||
// if (!hasAccess) {
|
if (!hasAccess) {
|
||||||
// return <AccessDeniedDialog />;
|
return <AccessDeniedDialog />;
|
||||||
// }
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -172,9 +172,9 @@ export const KeyInPaymentPage = () => {
|
|||||||
sortType
|
sortType
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// if (!hasAccess) {
|
if (!hasAccess) {
|
||||||
// return <AccessDeniedDialog />;
|
return <AccessDeniedDialog />;
|
||||||
// }
|
}
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -35,9 +35,9 @@ export const LinkPaymentHistoryPage = () => {
|
|||||||
navigate(PATHS.home);
|
navigate(PATHS.home);
|
||||||
});
|
});
|
||||||
|
|
||||||
// if(!hasAccess){
|
if(!hasAccess){
|
||||||
// return <AccessDeniedDialog />;
|
return <AccessDeniedDialog />;
|
||||||
// }
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -222,9 +222,9 @@ export const PayoutListPage = () => {
|
|||||||
return rs;
|
return rs;
|
||||||
};
|
};
|
||||||
|
|
||||||
// if (!hasAccess) {
|
if (!hasAccess) {
|
||||||
// return <AccessDeniedDialog />;
|
return <AccessDeniedDialog />;
|
||||||
// }
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -178,9 +178,9 @@ export const SmsPaymentPage = () => {
|
|||||||
smsCl
|
smsCl
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// if (!hasAccess) {
|
if (!hasAccess) {
|
||||||
// return <AccessDeniedDialog />;
|
return <AccessDeniedDialog />;
|
||||||
// }
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { useNavigate } from '@/shared/lib/hooks/use-navigate';
|
|||||||
import { useExtensionCheckMutation } from '@/entities/additional-service/api/use-extension-check-mutation';
|
import { useExtensionCheckMutation } from '@/entities/additional-service/api/use-extension-check-mutation';
|
||||||
import { Dialog } from '@/shared/ui/dialogs/dialog';
|
import { Dialog } from '@/shared/ui/dialogs/dialog';
|
||||||
import { PATHS } from '@/shared/constants/paths';
|
import { PATHS } from '@/shared/constants/paths';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
interface UseExtensionAccessCheckProps {
|
interface UseExtensionAccessCheckProps {
|
||||||
extensionCode: string;
|
extensionCode: string;
|
||||||
@@ -24,6 +25,7 @@ export const useExtensionAccessCheck = ({
|
|||||||
enabled = true
|
enabled = true
|
||||||
}: UseExtensionAccessCheckProps): UseExtensionAccessCheckReturn => {
|
}: UseExtensionAccessCheckProps): UseExtensionAccessCheckReturn => {
|
||||||
const { navigate } = useNavigate();
|
const { navigate } = useNavigate();
|
||||||
|
const { t } = useTranslation();
|
||||||
const { mutateAsync: extensionCheck } = useExtensionCheckMutation();
|
const { mutateAsync: extensionCheck } = useExtensionCheckMutation();
|
||||||
|
|
||||||
const [hasAccess, setHasAccess] = useState<boolean | null>(null);
|
const [hasAccess, setHasAccess] = useState<boolean | null>(null);
|
||||||
@@ -76,16 +78,16 @@ export const useExtensionAccessCheck = ({
|
|||||||
return (
|
return (
|
||||||
<Dialog
|
<Dialog
|
||||||
open={dialogOpen}
|
open={dialogOpen}
|
||||||
onClose={() => {}}
|
onClose={() => { }}
|
||||||
message={
|
message={
|
||||||
<>
|
<>
|
||||||
이용 중이지 않은 서비스입니다.<br />
|
{t('additionalService.notActiveServiceMessage')}<br />
|
||||||
가입 문의는 영업 담당자 또는 고객센터로 문의해 주세요.
|
{t('additionalService.contactSalesMessage')}
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
buttonLabel={['확인']}
|
buttonLabel={['확인']}
|
||||||
onConfirmClick={handleConfirm}
|
onConfirmClick={handleConfirm}
|
||||||
afterLeave={() => {}}
|
afterLeave={() => { }}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user