@opexa/portal-components 0.0.785 → 0.0.786

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.
@@ -72,9 +72,7 @@ export function KYCReminder(props) {
72
72
  isKYCReminderOpen &&
73
73
  isKYCStateRelevant &&
74
74
  isResponsibleGamingReminderClosed, onOpenChange: (details) => {
75
- if (!details.open && globalStore.kycReminder.open) {
76
- globalStore.kycReminder.setOpen(false);
77
- }
75
+ globalStore.kycReminder.setOpen(details.open);
78
76
  }, closeOnEscape: false, closeOnInteractOutside: false, lazyMount: true, unmountOnExit: true, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, { className: "!z-[calc(var(--z-dialog)+3)]" }), _jsx(Dialog.Positioner, { className: "!z-[calc(var(--z-dialog)+4)] flex items-center justify-center", children: _jsxs(Dialog.Content, { className: "mx-auto h-fit max-w-[calc(100dvw-1rem)] overflow-y-auto rounded-lg bg-bg-primary lg:max-w-[400px]", children: [!isPending && isNotVerified && isVerificationLocked && (_jsxs("div", { className: "p-3xl text-center", children: [_jsx("div", { className: "mx-auto mb-4 w-fit rounded-full p-2", children: _jsx(Image, { src: props.logo, alt: `${props.siteName} logo`, width: 200, height: 100, className: "mx-auto h-auto w-[120px]", draggable: false }) }), _jsx("h2", { className: `mt-4 font-semibold text-lg ${props.titleBgColor}`, children: "Temporarily Locked" }), _jsx("p", { className: `mt-xs text-sm text-text-tertiary-600 ${props.descriptionBgColor}`, children: "Your account has been locked due to incomplete verification. Please complete your verification to restore full access." }), _jsxs("div", { className: "mt-6 flex w-full items-center justify-center gap-3xl", children: [_jsx(Image, { src: props.pagcorLogo?.logo ?? pagcorLogo, alt: "PAGCOR logo", height: 88, width: 88, className: `h-[88px] w-auto shrink-0 ${props.pagcorLogo?.styles ?? ''}`, draggable: false, unoptimized: true }), _jsx(Image, { src: props.responsibleGamingLogo?.logo ?? responsibleGamingLogo, alt: "Responsible Gaming logo", height: 50, width: 186, className: `h-[50px] w-auto shrink-0 ${props.responsibleGamingLogo?.styles ?? ''}`, draggable: false, unoptimized: true })] }), _jsx(Dialog.Context, { children: (api) => (_jsxs("div", { className: "mt-6 space-y-lg", children: [_jsx(Button, { onClick: () => {
79
77
  api.setOpen(false);
80
78
  globalStore.kyc.setOpen(true);
@@ -24,13 +24,8 @@ export function KycOpenOnHomeMount(props) {
24
24
  const shouldShowReminder = Boolean(props.isSkippable);
25
25
  const hasSeenKycModal = sessionStorage.getItem('hasSeenKycModal');
26
26
  const isFirstVisit = !hasSeenKycModal;
27
- // Handle pending case with feature flag
28
- if (isPending) {
29
- setkycOpen(false);
30
- setkycReminderOpen(true);
31
- }
32
27
  // Handle rejected verification status
33
- else if (isRejected) {
28
+ if (isRejected) {
34
29
  if (isFirstVisit) {
35
30
  setkycReminderOpen(false);
36
31
  setkycOpen(true);
@@ -70,7 +65,6 @@ export function KycOpenOnHomeMount(props) {
70
65
  verificationLoading,
71
66
  accountLoading,
72
67
  isVerificationLocked,
73
- isPending,
74
68
  isRejected,
75
69
  isUnverified,
76
70
  isKycCompleted,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opexa/portal-components",
3
- "version": "0.0.785",
3
+ "version": "0.0.786",
4
4
  "exports": {
5
5
  "./ui/*": {
6
6
  "types": "./dist/ui/*/index.d.ts",