@opexa/portal-components 0.0.689 → 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.
- package/dist/components/KYC/KycOpenOnHomeMount.d.ts +4 -1
- package/dist/components/KYC/KycOpenOnHomeMount.js +6 -3
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/ui/AlertDialog/AlertDialog.d.ts +121 -121
- package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +11 -11
- package/dist/ui/Badge/Badge.d.ts +12 -12
- package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
- package/dist/ui/Badge/badge.recipe.d.ts +3 -3
- package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
- package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
- package/dist/ui/Collapsible/Collapsible.d.ts +32 -32
- package/dist/ui/Collapsible/collapsible.recipe.d.ts +8 -8
- package/dist/ui/Combobox/Combobox.d.ts +42 -42
- package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
- package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
- package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
- package/dist/ui/Dialog/Dialog.d.ts +33 -33
- package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
- package/dist/ui/Drawer/Drawer.d.ts +33 -33
- package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
- package/dist/ui/Menu/Menu.d.ts +198 -198
- package/dist/ui/Menu/menu.recipe.d.ts +11 -11
- package/dist/ui/Popover/Popover.d.ts +154 -154
- package/dist/ui/Popover/popover.recipe.d.ts +14 -14
- package/dist/ui/Select/Select.d.ts +45 -45
- package/dist/ui/Select/select.recipe.d.ts +3 -3
- package/dist/ui/Table/table.anatomy.d.ts +1 -1
- package/dist/ui/Tabs/Tabs.d.ts +15 -15
- package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
- package/dist/ui/Tooltip/Tooltip.d.ts +30 -30
- package/dist/ui/Tooltip/tooltip.recipe.d.ts +5 -5
- package/package.json +1 -1
- package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +0 -184
- package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +0 -184
- package/dist/components/KYC/KYCDefault/BasicInformation.d.ts +0 -1
- package/dist/components/KYC/KYCDefault/BasicInformation.js +0 -101
- package/dist/components/KYC/KYCVerificationStatus.d.ts +0 -1
- package/dist/components/KYC/KYCVerificationStatus.js +0 -10
- package/dist/components/KYC/KYCVerificationStatus.lazy.d.ts +0 -1
- package/dist/components/KYC/KYCVerificationStatus.lazy.js +0 -33
- package/dist/components/PortalProvider/LinkGoogleAccountObserver.d.ts +0 -1
- package/dist/components/PortalProvider/LinkGoogleAccountObserver.js +0 -29
- package/dist/components/SessionWatcher/SessionWatcher.d.ts +0 -1
- package/dist/components/SessionWatcher/SessionWatcher.js +0 -20
- package/dist/components/SessionWatcher/index.d.ts +0 -1
- package/dist/components/SessionWatcher/index.js +0 -1
|
@@ -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
|
-
|
|
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
|
}
|