@opexa/portal-components 0.0.772 → 0.0.774

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 && !globalStore.responsibleGamingReminder.open, onOpenChange: (details) => {
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 && !shouldShowReminder) {
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 && !shouldShowReminder) {
46
+ if (isFirstVisit) {
47
47
  setkycReminderOpen(false);
48
48
  setkycOpen(true);
49
49
  sessionStorage.setItem('hasSeenKycModal', 'true');
@@ -274,6 +274,7 @@ export function SignUpDefaultForm() {
274
274
  return;
275
275
  }
276
276
  globalStore.signUp.setOpen(false);
277
+ globalStore.responsibleGaming.setOpen(true);
277
278
  step1Form.reset();
278
279
  step2Form.reset();
279
280
  setStep(1);
@@ -425,6 +425,7 @@ export function SignUpKYCForm() {
425
425
  await pollImageUpload();
426
426
  }
427
427
  dialog.setOpen(false);
428
+ globalStore.responsibleGaming.setOpen(true);
428
429
  step1Form.reset();
429
430
  step2Form.reset();
430
431
  setStep(1);
@@ -168,6 +168,7 @@ export function SignUpNameAndPasswordForm() {
168
168
  return;
169
169
  }
170
170
  globalStore.signUp.setOpen(false);
171
+ globalStore.responsibleGaming.setOpen(true);
171
172
  form.reset();
172
173
  }
173
174
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opexa/portal-components",
3
- "version": "0.0.772",
3
+ "version": "0.0.774",
4
4
  "exports": {
5
5
  "./ui/*": {
6
6
  "types": "./dist/ui/*/index.d.ts",