Files
nice-app-web/src/pages/additional-service/link-payment/apply/link-payment-apply-confirm-page.tsx

62 lines
2.6 KiB
TypeScript

import { HeaderType } from '@/entities/common/model/types';
import { useSetFooterMode, useSetHeaderTitle, useSetHeaderType } from '@/widgets/sub-layout/use-sub-layout';
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
import { IMAGE_ROOT } from "@/shared/constants/common";
import { PATHS } from '@/shared/constants/paths';
export const LinkPaymentApplyConfirmPage = () => {
const { navigate } = useNavigate();
useSetHeaderTitle('메시지 미리보기');
useSetHeaderType(HeaderType.LeftArrow);
useSetFooterMode(false);
const onClickToConfirm = () => {
navigate(PATHS.additionalService.linkPayment.confirmSuccess);
};
const onClickToBack = () => {
navigate(-1);
};
return (
<>
<main className="pop">
<div className="sub-wrap">
<div className="preview-body">
<div className="attention-icon" aria-hidden="true">
<img src={IMAGE_ROOT + '/ico_alert.svg'} alt="주의" />
</div>
<h1 className="preview-title"> <br/> </h1>
<div className="preview-result">
<p className="preview-text">
TEST , ?<br/>
<br/>
.<br/>
URL로 .<br/><br/>
!$&#123;pay_url&#125;<br/><br/>
<b>
상호 : 나이스페이먼츠 <br/>
상품명 : TEST<br/>
금액 : 123,123
</b>
</p>
</div>
</div>
</div>
<div className="apply-row two-button">
<button
className="btn-50 btn-darkgray flex-1"
onClick={() => onClickToBack()}
></button>
<button
className="btn-50 btn-blue flex-3"
onClick={() => onClickToConfirm()}
> </button>
</div>
<div className="home-indicator"></div>
</main>
</>
);
};