@opexa/portal-components 0.0.634 → 0.0.636
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.
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +4 -7
- package/dist/components/DepositWithdrawal/Deposit/LibanganDeposit/LibanganDeposit.js +4 -7
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +4 -7
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +4 -7
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +4 -7
- package/dist/components/DepositWithdrawal/Deposit/PisoPayDeposit/PisoPayDeposit.js +4 -7
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +4 -7
- package/dist/components/GameLaunch/GameLaunchTrigger.js +4 -7
- package/package.json +1 -1
|
@@ -11,7 +11,6 @@ import { useCreateGCashDepositMutation } from '../../../../client/hooks/useCreat
|
|
|
11
11
|
import { useDepositQuery } from '../../../../client/hooks/useDepositQuery.js';
|
|
12
12
|
import { useDepositsCountQuery } from '../../../../client/hooks/useDepositsCountQuery.js';
|
|
13
13
|
import { useDisclosure } from '../../../../client/hooks/useDisclosure.js';
|
|
14
|
-
import { useFeatureFlag } from '../../../../client/hooks/useFeatureFlag.js';
|
|
15
14
|
import { useGlobalStore } from '../../../../client/hooks/useGlobalStore.js';
|
|
16
15
|
import { useMemberVerificationQuery } from '../../../../client/hooks/useMemberVerificationQuery.js';
|
|
17
16
|
import { usePaymentSettingsQuery } from '../../../../client/hooks/usePaymentSettingsQuery.js';
|
|
@@ -30,7 +29,6 @@ import { AmountChoices } from '../../AmountChoices.js';
|
|
|
30
29
|
import { useDepositWithdrawalPropsContext } from '../../DepositWithdrawalContext.js';
|
|
31
30
|
import { AvailablePromos } from '../AvailablePromos.js';
|
|
32
31
|
export function GCashDeposit() {
|
|
33
|
-
const { enabled } = useFeatureFlag();
|
|
34
32
|
const depositWithdrawalProps = useDepositWithdrawalPropsContext();
|
|
35
33
|
const disclosure = useDisclosure();
|
|
36
34
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
@@ -152,11 +150,10 @@ export function GCashDeposit() {
|
|
|
152
150
|
}, [form, minimumAmount]);
|
|
153
151
|
return (_jsxs("form", { onSubmit: form.handleSubmit(async (data) => {
|
|
154
152
|
//handle new kyc process
|
|
155
|
-
if (
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
verificationStatus === 'CREATED')) {
|
|
153
|
+
if (verificationStatus === 'PENDING' ||
|
|
154
|
+
verificationStatus === 'UNVERIFIED' ||
|
|
155
|
+
verificationStatus === 'REJECTED' ||
|
|
156
|
+
verificationStatus === 'CREATED') {
|
|
160
157
|
globalStore.kycVerificationStatus.setOpen(true);
|
|
161
158
|
return;
|
|
162
159
|
}
|
|
@@ -11,7 +11,6 @@ import { useCreateLibanganDepositMutation } from '../../../../client/hooks/useCr
|
|
|
11
11
|
import { useDepositQuery } from '../../../../client/hooks/useDepositQuery.js';
|
|
12
12
|
import { useDepositsCountQuery } from '../../../../client/hooks/useDepositsCountQuery.js';
|
|
13
13
|
import { useDisclosure } from '../../../../client/hooks/useDisclosure.js';
|
|
14
|
-
import { useFeatureFlag } from '../../../../client/hooks/useFeatureFlag.js';
|
|
15
14
|
import { useGlobalStore } from '../../../../client/hooks/useGlobalStore.js';
|
|
16
15
|
import { useMemberVerificationQuery } from '../../../../client/hooks/useMemberVerificationQuery.js';
|
|
17
16
|
import { usePaymentSettingsQuery } from '../../../../client/hooks/usePaymentSettingsQuery.js';
|
|
@@ -30,7 +29,6 @@ import { AmountChoices } from '../../AmountChoices.js';
|
|
|
30
29
|
import { useDepositWithdrawalPropsContext } from '../../DepositWithdrawalContext.js';
|
|
31
30
|
import { AvailablePromos } from '../AvailablePromos.js';
|
|
32
31
|
export function LibanganDeposit() {
|
|
33
|
-
const { enabled } = useFeatureFlag();
|
|
34
32
|
const depositWithdrawalProps = useDepositWithdrawalPropsContext();
|
|
35
33
|
const disclosure = useDisclosure();
|
|
36
34
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
@@ -152,11 +150,10 @@ export function LibanganDeposit() {
|
|
|
152
150
|
}, [form, minimumAmount]);
|
|
153
151
|
return (_jsxs("form", { onSubmit: form.handleSubmit(async (data) => {
|
|
154
152
|
//handle new kyc process
|
|
155
|
-
if (
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
verificationStatus === 'CREATED')) {
|
|
153
|
+
if (verificationStatus === 'PENDING' ||
|
|
154
|
+
verificationStatus === 'UNVERIFIED' ||
|
|
155
|
+
verificationStatus === 'REJECTED' ||
|
|
156
|
+
verificationStatus === 'CREATED') {
|
|
160
157
|
globalStore.kycVerificationStatus.setOpen(true);
|
|
161
158
|
return;
|
|
162
159
|
}
|
|
@@ -8,7 +8,6 @@ import { useShallow } from 'zustand/shallow';
|
|
|
8
8
|
import { useAvailablePromosQuery } from '../../../../client/hooks/useAvailablePromosQuery.js';
|
|
9
9
|
import { useCreateMayaAppDepositMutation } from '../../../../client/hooks/useCreateMayaAppDepositMutation.js';
|
|
10
10
|
import { useDepositsCountQuery } from '../../../../client/hooks/useDepositsCountQuery.js';
|
|
11
|
-
import { useFeatureFlag } from '../../../../client/hooks/useFeatureFlag.js';
|
|
12
11
|
import { useGlobalStore } from '../../../../client/hooks/useGlobalStore.js';
|
|
13
12
|
import { useMemberVerificationQuery } from '../../../../client/hooks/useMemberVerificationQuery.js';
|
|
14
13
|
import { usePaymentSettingsQuery } from '../../../../client/hooks/usePaymentSettingsQuery.js';
|
|
@@ -27,7 +26,6 @@ import { AmountChoices } from '../../AmountChoices.js';
|
|
|
27
26
|
import { useDepositWithdrawalPropsContext } from '../../DepositWithdrawalContext.js';
|
|
28
27
|
import { AvailablePromos } from '../AvailablePromos.js';
|
|
29
28
|
export function MayaAppDeposit() {
|
|
30
|
-
const { enabled } = useFeatureFlag();
|
|
31
29
|
const depositWithdrawalProps = useDepositWithdrawalPropsContext();
|
|
32
30
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
33
31
|
depositWithdrawal: ctx.depositWithdrawal,
|
|
@@ -122,11 +120,10 @@ export function MayaAppDeposit() {
|
|
|
122
120
|
}, [form, minimumAmount]);
|
|
123
121
|
const handleSubmit = form.handleSubmit(async (data) => {
|
|
124
122
|
//handle new kyc process
|
|
125
|
-
if (
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
verificationStatus === 'CREATED')) {
|
|
123
|
+
if (verificationStatus === 'PENDING' ||
|
|
124
|
+
verificationStatus === 'UNVERIFIED' ||
|
|
125
|
+
verificationStatus === 'REJECTED' ||
|
|
126
|
+
verificationStatus === 'CREATED') {
|
|
130
127
|
globalStore.kycVerificationStatus.setOpen(true);
|
|
131
128
|
return;
|
|
132
129
|
}
|
|
@@ -11,7 +11,6 @@ import { useCreateMayaDepositMutation } from '../../../../client/hooks/useCreate
|
|
|
11
11
|
import { useDepositQuery } from '../../../../client/hooks/useDepositQuery.js';
|
|
12
12
|
import { useDepositsCountQuery } from '../../../../client/hooks/useDepositsCountQuery.js';
|
|
13
13
|
import { useDisclosure } from '../../../../client/hooks/useDisclosure.js';
|
|
14
|
-
import { useFeatureFlag } from '../../../../client/hooks/useFeatureFlag.js';
|
|
15
14
|
import { useGlobalStore } from '../../../../client/hooks/useGlobalStore.js';
|
|
16
15
|
import { useMemberVerificationQuery } from '../../../../client/hooks/useMemberVerificationQuery.js';
|
|
17
16
|
import { usePaymentSettingsQuery } from '../../../../client/hooks/usePaymentSettingsQuery.js';
|
|
@@ -30,7 +29,6 @@ import { AmountChoices } from '../../AmountChoices.js';
|
|
|
30
29
|
import { useDepositWithdrawalPropsContext } from '../../DepositWithdrawalContext.js';
|
|
31
30
|
import { AvailablePromos } from '../AvailablePromos.js';
|
|
32
31
|
export function MayaDeposit() {
|
|
33
|
-
const { enabled } = useFeatureFlag();
|
|
34
32
|
const depositWithdrawalProps = useDepositWithdrawalPropsContext();
|
|
35
33
|
const disclosure = useDisclosure();
|
|
36
34
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
@@ -152,11 +150,10 @@ export function MayaDeposit() {
|
|
|
152
150
|
}, [form, minimumAmount]);
|
|
153
151
|
return (_jsxs("form", { onSubmit: form.handleSubmit(async (data) => {
|
|
154
152
|
//handle new kyc process
|
|
155
|
-
if (
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
verificationStatus === 'CREATED')) {
|
|
153
|
+
if (verificationStatus === 'PENDING' ||
|
|
154
|
+
verificationStatus === 'UNVERIFIED' ||
|
|
155
|
+
verificationStatus === 'REJECTED' ||
|
|
156
|
+
verificationStatus === 'CREATED') {
|
|
160
157
|
globalStore.kycVerificationStatus.setOpen(true);
|
|
161
158
|
return;
|
|
162
159
|
}
|
|
@@ -3,11 +3,9 @@ import invariant from 'tiny-invariant';
|
|
|
3
3
|
import { useShallow } from 'zustand/shallow';
|
|
4
4
|
import { useCreateOnlineBankDepositMutation } from '../../../../client/hooks/useCreateOnlineBankDepositMutation.js';
|
|
5
5
|
import { useDepositQuery } from '../../../../client/hooks/useDepositQuery.js';
|
|
6
|
-
import { useFeatureFlag } from '../../../../client/hooks/useFeatureFlag.js';
|
|
7
6
|
import { useGlobalStore } from '../../../../client/hooks/useGlobalStore.js';
|
|
8
7
|
import { useMemberVerificationQuery } from '../../../../client/hooks/useMemberVerificationQuery.js';
|
|
9
8
|
export function useOnlineBankDeposit() {
|
|
10
|
-
const { enabled } = useFeatureFlag();
|
|
11
9
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
12
10
|
kycVerificationStatus: ctx.kycVerificationStatus,
|
|
13
11
|
})));
|
|
@@ -36,11 +34,10 @@ export function useOnlineBankDeposit() {
|
|
|
36
34
|
});
|
|
37
35
|
const generateVCA = (input) => {
|
|
38
36
|
//handle new kyc process
|
|
39
|
-
if (
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
verificationStatus === 'CREATED')) {
|
|
37
|
+
if (verificationStatus === 'PENDING' ||
|
|
38
|
+
verificationStatus === 'UNVERIFIED' ||
|
|
39
|
+
verificationStatus === 'REJECTED' ||
|
|
40
|
+
verificationStatus === 'CREATED') {
|
|
44
41
|
globalStore.kycVerificationStatus.setOpen(true);
|
|
45
42
|
return;
|
|
46
43
|
}
|
|
@@ -12,7 +12,6 @@ import { useCreatePisoPayDepositMutation } from '../../../../client/hooks/useCre
|
|
|
12
12
|
import { useDepositQuery } from '../../../../client/hooks/useDepositQuery.js';
|
|
13
13
|
import { useDepositsCountQuery } from '../../../../client/hooks/useDepositsCountQuery.js';
|
|
14
14
|
import { useDisclosure } from '../../../../client/hooks/useDisclosure.js';
|
|
15
|
-
import { useFeatureFlag } from '../../../../client/hooks/useFeatureFlag.js';
|
|
16
15
|
import { useGlobalStore } from '../../../../client/hooks/useGlobalStore.js';
|
|
17
16
|
import { useMemberVerificationQuery } from '../../../../client/hooks/useMemberVerificationQuery.js';
|
|
18
17
|
import { usePaymentSettingsQuery } from '../../../../client/hooks/usePaymentSettingsQuery.js';
|
|
@@ -29,7 +28,6 @@ import { AmountChoices } from '../../AmountChoices.js';
|
|
|
29
28
|
import { useDepositWithdrawalPropsContext } from '../../DepositWithdrawalContext.js';
|
|
30
29
|
import { AvailablePromos } from '../AvailablePromos.js';
|
|
31
30
|
export function PisoPayDeposit() {
|
|
32
|
-
const { enabled } = useFeatureFlag();
|
|
33
31
|
const depositWithdrawalProps = useDepositWithdrawalPropsContext();
|
|
34
32
|
const disclosure = useDisclosure();
|
|
35
33
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
@@ -158,11 +156,10 @@ export function PisoPayDeposit() {
|
|
|
158
156
|
}, [form, minimumAmount]);
|
|
159
157
|
return (_jsxs("form", { onSubmit: form.handleSubmit(async (data) => {
|
|
160
158
|
//handle new kyc process
|
|
161
|
-
if (
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
verificationStatus === 'CREATED')) {
|
|
159
|
+
if (verificationStatus === 'PENDING' ||
|
|
160
|
+
verificationStatus === 'UNVERIFIED' ||
|
|
161
|
+
verificationStatus === 'REJECTED' ||
|
|
162
|
+
verificationStatus === 'CREATED') {
|
|
166
163
|
globalStore.kycVerificationStatus.setOpen(true);
|
|
167
164
|
return;
|
|
168
165
|
}
|
|
@@ -3,11 +3,9 @@ import invariant from 'tiny-invariant';
|
|
|
3
3
|
import { useShallow } from 'zustand/shallow';
|
|
4
4
|
import { useCreateQRPHDepositMutation } from '../../../../client/hooks/useCreateQRPHDepositMutation.js';
|
|
5
5
|
import { useDepositQuery } from '../../../../client/hooks/useDepositQuery.js';
|
|
6
|
-
import { useFeatureFlag } from '../../../../client/hooks/useFeatureFlag.js';
|
|
7
6
|
import { useGlobalStore } from '../../../../client/hooks/useGlobalStore.js';
|
|
8
7
|
import { useMemberVerificationQuery } from '../../../../client/hooks/useMemberVerificationQuery.js';
|
|
9
8
|
export function useQRPHDeposit() {
|
|
10
|
-
const { enabled } = useFeatureFlag();
|
|
11
9
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
12
10
|
kycVerificationStatus: ctx.kycVerificationStatus,
|
|
13
11
|
})));
|
|
@@ -36,11 +34,10 @@ export function useQRPHDeposit() {
|
|
|
36
34
|
});
|
|
37
35
|
const generateQRCode = (input) => {
|
|
38
36
|
//handle new kyc process
|
|
39
|
-
if (
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
verificationStatus === 'CREATED')) {
|
|
37
|
+
if (verificationStatus === 'PENDING' ||
|
|
38
|
+
verificationStatus === 'UNVERIFIED' ||
|
|
39
|
+
verificationStatus === 'REJECTED' ||
|
|
40
|
+
verificationStatus === 'CREATED') {
|
|
44
41
|
globalStore.kycVerificationStatus.setOpen(true);
|
|
45
42
|
return;
|
|
46
43
|
}
|
|
@@ -3,13 +3,11 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { ark } from '@ark-ui/react/factory';
|
|
4
4
|
import { useShallow } from 'zustand/shallow';
|
|
5
5
|
import { useCreateGameSessionMutation } from '../../client/hooks/useCreateGameSessionMutation.js';
|
|
6
|
-
import { useFeatureFlag } from '../../client/hooks/useFeatureFlag.js';
|
|
7
6
|
import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
|
|
8
7
|
import { useMemberVerificationQuery } from '../../client/hooks/useMemberVerificationQuery.js';
|
|
9
8
|
import { useSessionQuery } from '../../client/hooks/useSessionQuery.js';
|
|
10
9
|
import { toaster } from '../../client/utils/toaster.js';
|
|
11
10
|
export function GameLaunchTrigger(props) {
|
|
12
|
-
const featureFlag = useFeatureFlag();
|
|
13
11
|
const sessionQuery = useSessionQuery();
|
|
14
12
|
const verificationQuery = useMemberVerificationQuery();
|
|
15
13
|
const createGameSessionMutation = useCreateGameSessionMutation();
|
|
@@ -43,11 +41,10 @@ export function GameLaunchTrigger(props) {
|
|
|
43
41
|
return;
|
|
44
42
|
}
|
|
45
43
|
//handle new kyc process to play only on verified members only
|
|
46
|
-
if (
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
verificationStatus === 'CREATED')) {
|
|
44
|
+
if (verificationStatus === 'PENDING' ||
|
|
45
|
+
verificationStatus === 'REJECTED' ||
|
|
46
|
+
verificationStatus === 'UNVERIFIED' ||
|
|
47
|
+
verificationStatus === 'CREATED') {
|
|
51
48
|
globalStore.kycVerificationStatus.setOpen(true);
|
|
52
49
|
return;
|
|
53
50
|
}
|