@opexa/portal-components 0.0.621 → 0.0.623

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.
@@ -45,7 +45,6 @@ export const useAccountQuery = (config) => {
45
45
  res?.verificationStatus !== 'VERIFIED') {
46
46
  globalStore.kycReminder.setOpen(true);
47
47
  await refreshSession();
48
- await getSession();
49
48
  }
50
49
  return res;
51
50
  },
@@ -15,17 +15,20 @@ export function KYCVerificationStatus() {
15
15
  kyc: ctx.kyc,
16
16
  })));
17
17
  const verificationQuery = useMemberVerificationQuery();
18
+ console.log(verificationQuery, 'data');
18
19
  const status = verificationQuery?.data?.status ?? 'UNVERIFIED';
19
20
  const icons = status === 'PENDING' ? bellIcon : alertIcon;
20
21
  return (_jsx(Dialog.Root, { open: globalStore.kycVerificationStatus.open, onOpenChange: (details) => {
21
22
  globalStore.kycVerificationStatus.setOpen(details.open);
22
23
  }, 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: _jsx(Dialog.Content, { className: "mx-auto h-fit w-[450px] overflow-y-auto rounded-lg bg-bg-primary", children: _jsxs("div", { className: "p-3xl text-center", children: [_jsx("div", { className: "mb-3xl grid h-[200px] w-full place-items-center rounded-xl bg-radial from-40% from-button-primary-bg to-bg-brand-solid", children: _jsx(Image, { src: icons, alt: "icon", className: "w-60 object-contain", draggable: false, width: 120, height: 120 }) }), _jsxs("h1", { className: "font-semibold text-lg text-white", children: [status === 'PENDING' && 'Verification in Progress', status === 'REJECTED' && 'Verification Rejected', status === 'UNVERIFIED' ||
23
- (status === 'CREATED' && 'Verification Required')] }), _jsxs("p", { className: "mb-4xl text-[#94969C] text-base", children: [status === 'PENDING' &&
24
+ status === 'CREATED' ||
25
+ (verificationQuery?.data === null && 'Verification Required')] }), _jsxs("p", { className: "mb-4xl text-[#94969C] text-base", children: [status === 'PENDING' &&
24
26
  `Your account verification is still under review. Please wait
25
27
  until it's approved before you can continue playing or
26
28
  depositing.`, status === 'REJECTED' &&
27
29
  'Your account verification was not approved. Please resubmit your verification to regain full access.', status === 'UNVERIFIED' ||
28
- (status === 'CREATED' &&
30
+ status === 'CREATED' ||
31
+ (verificationQuery?.data === null &&
29
32
  'Your account is not yet verified. Please complete the verification process to continue playing or depositing.')] }), _jsxs(Button, { variant: "solid", className: twMerge('mb-2 w-full', status === 'PENDING' && 'hidden'), onClick: () => {
30
33
  globalStore.kycVerificationStatus.setOpen(false);
31
34
  globalStore.kyc.setOpen(true);
@@ -1,4 +1,4 @@
1
1
  export * from './KYC';
2
+ export * from './KYCDefault/KYCVerificationStatus';
2
3
  export * from './KYCTrigger';
3
- export * from './KYCVerificationStatus';
4
4
  export * from './KycOpenOnHomeMount';
@@ -1,4 +1,4 @@
1
1
  export * from './KYC.js';
2
+ export * from './KYCDefault/KYCVerificationStatus.js';
2
3
  export * from './KYCTrigger.js';
3
- export * from './KYCVerificationStatus.js';
4
4
  export * from './KycOpenOnHomeMount.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opexa/portal-components",
3
- "version": "0.0.621",
3
+ "version": "0.0.623",
4
4
  "exports": {
5
5
  "./ui/*": {
6
6
  "types": "./dist/ui/*/index.d.ts",