@opexa/portal-components 0.0.695 → 0.0.696
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.js +10 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/ui/AlertDialog/AlertDialog.d.ts +55 -55
- package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +5 -5
- 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/Checkbox/Checkbox.d.ts +23 -23
- package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
- 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 +90 -90
- package/dist/ui/Menu/menu.recipe.d.ts +5 -5
- package/dist/ui/Popover/Popover.d.ts +55 -55
- package/dist/ui/Popover/popover.recipe.d.ts +5 -5
- 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/package.json +1 -1
- package/dist/components/AccountInfo/GoogleDisconnect.d.ts +0 -7
- package/dist/components/AccountInfo/GoogleDisconnect.js +0 -11
- package/dist/components/DigitainLauncher/Loading.d.ts +0 -1
- package/dist/components/DigitainLauncher/Loading.js +0 -5
- package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +0 -184
- package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +0 -184
- package/dist/components/KYC/BasicInformation.d.ts +0 -1
- package/dist/components/KYC/BasicInformation.js +0 -101
- package/dist/components/KYC/IdentityVerification.d.ts +0 -1
- package/dist/components/KYC/IdentityVerification.js +0 -120
- package/dist/components/KYC/Indicator.d.ts +0 -1
- package/dist/components/KYC/Indicator.js +0 -8
- package/dist/components/KYC/KYC.lazy.d.ts +0 -6
- package/dist/components/KYC/KYC.lazy.js +0 -45
- package/dist/components/KYC/KYCContext.d.ts +0 -6
- package/dist/components/KYC/KYCContext.js +0 -2
- 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/KYC/PersonalInformation.d.ts +0 -1
- package/dist/components/KYC/PersonalInformation.js +0 -122
- package/dist/components/KYC/useKYC.d.ts +0 -25
- package/dist/components/KYC/useKYC.js +0 -38
- package/dist/components/PortalProvider/CXDTokenObserver.d.ts +0 -1
- package/dist/components/PortalProvider/CXDTokenObserver.js +0 -30
- 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
- package/dist/icons/LinkBrokenIcon.d.ts +0 -2
- package/dist/icons/LinkBrokenIcon.js +0 -4
- package/dist/images/responsible-gaming-yellow.png +0 -0
|
@@ -10,6 +10,7 @@ export function KycOpenOnHomeMount(props) {
|
|
|
10
10
|
const { data: account, isLoading: accountLoading } = useAccountQuery();
|
|
11
11
|
const isVerificationLocked = account?.status === 'VERIFICATION_LOCKED';
|
|
12
12
|
const isPending = account?.verificationStatus === 'PENDING';
|
|
13
|
+
const isRejected = verification?.status === 'REJECTED';
|
|
13
14
|
const hasntSubmittedCompliantDocs = account?.verified ||
|
|
14
15
|
verification?.sumsubVerified ||
|
|
15
16
|
verification?.status === 'APPROVED' ||
|
|
@@ -34,14 +35,20 @@ export function KycOpenOnHomeMount(props) {
|
|
|
34
35
|
!verification?.address;
|
|
35
36
|
useEffect(() => {
|
|
36
37
|
if (!verificationLoading && !accountLoading) {
|
|
38
|
+
const shouldShowReminder = Boolean(props.isSkippable);
|
|
37
39
|
// Handle pending case with feature flag
|
|
38
40
|
if (isPending) {
|
|
39
41
|
setkycOpen(false);
|
|
40
42
|
setkycReminderOpen(true);
|
|
41
43
|
}
|
|
42
|
-
|
|
44
|
+
// Handle rejected verification status
|
|
45
|
+
else if (isRejected) {
|
|
46
|
+
setkycReminderOpen(shouldShowReminder);
|
|
47
|
+
setkycOpen(!shouldShowReminder);
|
|
48
|
+
}
|
|
49
|
+
// Handle cases where user hasn't submitted compliant documents or hasn't completed KYC
|
|
50
|
+
else if (hasntSubmittedCompliantDocs || hasntCompletedKYC) {
|
|
43
51
|
// Set modal states based on whether KYC can be skipped
|
|
44
|
-
const shouldShowReminder = Boolean(props.isSkippable);
|
|
45
52
|
setkycReminderOpen(shouldShowReminder);
|
|
46
53
|
setkycOpen(!shouldShowReminder);
|
|
47
54
|
}
|
|
@@ -62,6 +69,7 @@ export function KycOpenOnHomeMount(props) {
|
|
|
62
69
|
hasntCompletedKYC,
|
|
63
70
|
isVerificationLocked,
|
|
64
71
|
isPending,
|
|
72
|
+
isRejected,
|
|
65
73
|
props.isSkippable,
|
|
66
74
|
]);
|
|
67
75
|
return null;
|