@opexa/portal-components 0.0.880 → 0.0.881
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.
|
@@ -8,6 +8,7 @@ import { Controller, useForm } from 'react-hook-form';
|
|
|
8
8
|
import invariant from 'tiny-invariant';
|
|
9
9
|
import { z } from 'zod';
|
|
10
10
|
import { useShallow } from 'zustand/shallow';
|
|
11
|
+
import { useApproveMemberVerification } from '../../../client/hooks/useApproveMemberVerification.js';
|
|
11
12
|
import { useCreateMemberVerificationMutation } from '../../../client/hooks/useCreateMemberVerificationMutation.js';
|
|
12
13
|
import { useGlobalStore } from '../../../client/hooks/useGlobalStore.js';
|
|
13
14
|
import { useMemberVerificationQuery } from '../../../client/hooks/useMemberVerificationQuery.js';
|
|
@@ -38,6 +39,7 @@ export function IdentityVerification() {
|
|
|
38
39
|
router.replace('/');
|
|
39
40
|
},
|
|
40
41
|
});
|
|
42
|
+
const approveMemberVerificationMutation = useApproveMemberVerification();
|
|
41
43
|
const { mutate: createMemberVerification, isPending: createPending } = useCreateMemberVerificationMutation({
|
|
42
44
|
onSuccess: () => {
|
|
43
45
|
const queryClient = getQueryClient();
|
|
@@ -122,6 +124,7 @@ export function IdentityVerification() {
|
|
|
122
124
|
idFrontImage: values.idFrontImage,
|
|
123
125
|
},
|
|
124
126
|
});
|
|
127
|
+
await approveMemberVerificationMutation.mutateAsync(memberId);
|
|
125
128
|
}
|
|
126
129
|
}
|
|
127
130
|
useEffect(() => {
|