@opexa/portal-components 0.0.688 → 0.0.690

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.
@@ -1 +1,4 @@
1
- export declare function KycOpenOnHomeMount(): null;
1
+ export interface KycOpenOnHomeMountProps {
2
+ isSkippable?: boolean;
3
+ }
4
+ export declare function KycOpenOnHomeMount(props: KycOpenOnHomeMountProps): null;
@@ -3,7 +3,7 @@ import { useEffect } from 'react';
3
3
  import { useAccountQuery } from '../../client/hooks/useAccountQuery.js';
4
4
  import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
5
5
  import { useMemberVerificationQuery } from '../../client/hooks/useMemberVerificationQuery.js';
6
- export function KycOpenOnHomeMount() {
6
+ export function KycOpenOnHomeMount(props) {
7
7
  const setkycReminderOpen = useGlobalStore((s) => s.kycReminder.setOpen);
8
8
  const setkycOpen = useGlobalStore((s) => s.kyc.setOpen);
9
9
  const { data: verification, isLoading: verificationLoading } = useMemberVerificationQuery();
@@ -33,7 +33,6 @@ export function KycOpenOnHomeMount() {
33
33
  !verification?.placeOfBirth ||
34
34
  !verification?.address;
35
35
  useEffect(() => {
36
- console.log(hasntSubmittedCompliantDocs, hasntCompletedKYC);
37
36
  if (!verificationLoading && !accountLoading) {
38
37
  // Handle pending case with feature flag
39
38
  if (isPending) {
@@ -41,7 +40,10 @@ export function KycOpenOnHomeMount() {
41
40
  setkycReminderOpen(true);
42
41
  }
43
42
  if (hasntSubmittedCompliantDocs || hasntCompletedKYC) {
44
- setkycReminderOpen(true);
43
+ // Set modal states based on whether KYC can be skipped
44
+ const shouldShowReminder = Boolean(props.isSkippable);
45
+ setkycReminderOpen(shouldShowReminder);
46
+ setkycOpen(!shouldShowReminder);
45
47
  }
46
48
  else if ((!hasntSubmittedCompliantDocs && hasntCompletedKYC) ||
47
49
  isVerificationLocked) {
@@ -60,6 +62,7 @@ export function KycOpenOnHomeMount() {
60
62
  hasntCompletedKYC,
61
63
  isVerificationLocked,
62
64
  isPending,
65
+ props.isSkippable,
63
66
  ]);
64
67
  return null;
65
68
  }
@@ -36,10 +36,10 @@ import pragmaticplay from '../images/game-providers/PRAGMATIC_PLAY.png';
36
36
  import relaxgaming from '../images/game-providers/RELAX_GAMING.png';
37
37
  import rtg from '../images/game-providers/RTG.png';
38
38
  import saba from '../images/game-providers/SABA.png';
39
+ import sagaming from '../images/game-providers/SAGAMING.png';
39
40
  import spinix from '../images/game-providers/SPINIX.png';
40
41
  import spribe from '../images/game-providers/SPRIBE.png';
41
42
  import yellowbat from '../images/game-providers/YELLOWBAT.png';
42
- import sagaming from '../images/game-providers/SAGAMING.png';
43
43
  export const GAME_PROVIDER_DATA = {
44
44
  ALIZE: {
45
45
  id: 'ALIZE',
@@ -311,6 +311,18 @@ export const GAME_PROVIDER_DATA = {
311
311
  slug: 'sagaming',
312
312
  logo: sagaming,
313
313
  },
314
+ ALPHACHINKO: {
315
+ id: 'ALPHACHINKO',
316
+ name: 'Alpha Chinko',
317
+ slug: 'alphachinko',
318
+ logo: '',
319
+ },
320
+ ONEAPI_SPADEGAMING: {
321
+ id: 'ONEAPI_SPADEGAMING',
322
+ name: 'OneAPI Spadegaming',
323
+ slug: 'oneapi-spadegaming',
324
+ logo: '',
325
+ },
314
326
  };
315
327
  export const GAME_PROVIDERS = Object.values(GAME_PROVIDER_DATA).map(({ id }) => id);
316
328
  export const LEGACY_GAME_PROVIDERS = [
@@ -345,5 +357,5 @@ export const LEGACY_GAME_PROVIDERS = [
345
357
  'EZUGI',
346
358
  'ALIZE',
347
359
  'BNG',
348
- 'JILI_BINGO'
360
+ 'JILI_BINGO',
349
361
  ];