@opexa/portal-components 0.0.772 → 0.0.773
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -20,7 +20,7 @@ export function KYCDefault(props) {
|
|
|
20
20
|
const kyc = useKYCDefault(props?.isSkippable ?? false);
|
|
21
21
|
const { isLoading: sessionLoading } = useSessionQuery();
|
|
22
22
|
const isDialogOpen = !globalStore.kycReminder.open && globalStore.kyc.open && !sessionLoading;
|
|
23
|
-
return (_jsxs(_Fragment, { children: [_jsx(KYCDefaultContext, { value: kyc, children: _jsx(Dialog.Root, { open: isDialogOpen
|
|
23
|
+
return (_jsxs(_Fragment, { children: [_jsx(KYCDefaultContext, { value: kyc, children: _jsx(Dialog.Root, { open: isDialogOpen, onOpenChange: (details) => {
|
|
24
24
|
globalStore.kyc.setOpen(details.open);
|
|
25
25
|
}, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, onExitComplete: kyc.reset, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { className: "fixed top-[57px] overflow-hidden", children: _jsx(Dialog.Content, { className: "mx-auto h-full w-full overflow-y-auto bg-bg-primary-alt md:max-h-[95vh] lg:w-fit", children: _jsxs("div", { className: "mt-[calc(var(--safe-area-inset-top)*3)] flex h-dvh w-full flex-col overflow-y-auto p-3xl sm:h-fit lg:w-[400px]", children: [_jsx(Image, { src: props.logo, alt: "", width: 200, height: 100, className: "mx-auto mb-5 block h-7.5 w-auto", draggable: false }), _jsx(Indicator, {}), kyc.step === 1 && _jsx(IdentityVerification, {}), kyc.step === 2 && _jsx(PersonalInformation, {})] }) }) })] }) }) }), _jsx(KYCReminder, { ...props })] }));
|
|
26
26
|
}
|
|
@@ -31,7 +31,7 @@ export function KycOpenOnHomeMount(props) {
|
|
|
31
31
|
}
|
|
32
32
|
// Handle rejected verification status
|
|
33
33
|
else if (isRejected) {
|
|
34
|
-
if (isFirstVisit
|
|
34
|
+
if (isFirstVisit) {
|
|
35
35
|
setkycReminderOpen(false);
|
|
36
36
|
setkycOpen(true);
|
|
37
37
|
sessionStorage.setItem('hasSeenKycModal', 'true');
|
|
@@ -43,7 +43,7 @@ export function KycOpenOnHomeMount(props) {
|
|
|
43
43
|
}
|
|
44
44
|
// Handle unverified verification status
|
|
45
45
|
else if (isUnverified) {
|
|
46
|
-
if (isFirstVisit
|
|
46
|
+
if (isFirstVisit) {
|
|
47
47
|
setkycReminderOpen(false);
|
|
48
48
|
setkycOpen(true);
|
|
49
49
|
sessionStorage.setItem('hasSeenKycModal', 'true');
|