@opexa/portal-components 0.0.786 → 0.0.787
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.
|
@@ -34,6 +34,7 @@ export function MessagesPopup() {
|
|
|
34
34
|
gameLaunch: ctx.gameLaunch,
|
|
35
35
|
depositWithdrawal: ctx.depositWithdrawal,
|
|
36
36
|
kycReminder: ctx.kycReminder,
|
|
37
|
+
responsibleGamingReminder: ctx.responsibleGamingReminder,
|
|
37
38
|
signIn: ctx.signIn,
|
|
38
39
|
signUp: ctx.signUp,
|
|
39
40
|
})));
|
|
@@ -80,7 +81,8 @@ export function MessagesPopup() {
|
|
|
80
81
|
!globalStore.account.open &&
|
|
81
82
|
!globalStore.account__mobile.open &&
|
|
82
83
|
!globalStore.kyc.open &&
|
|
83
|
-
!globalStore.kycReminder.open
|
|
84
|
+
!globalStore.kycReminder.open &&
|
|
85
|
+
!globalStore.responsibleGamingReminder.open,
|
|
84
86
|
refetchInterval: disclosure.open ? undefined : 1000 * 10,
|
|
85
87
|
});
|
|
86
88
|
const messages = messagesQuery.data?.pages.flatMap((page) => page.edges
|
|
@@ -120,7 +122,11 @@ export function MessagesPopup() {
|
|
|
120
122
|
const sessionQuery = useSessionQuery();
|
|
121
123
|
const session = sessionQuery.data;
|
|
122
124
|
const isKycClosed = !globalStore.kyc.open && !globalStore.kycReminder.open;
|
|
123
|
-
|
|
125
|
+
const isResponsibleGamingReminderClosed = !globalStore.responsibleGamingReminder.open;
|
|
126
|
+
return (_jsx(Dialog.Root, { open: disclosure.open &&
|
|
127
|
+
!paused &&
|
|
128
|
+
isKycClosed &&
|
|
129
|
+
isResponsibleGamingReminderClosed, onOpenChange: (details) => {
|
|
124
130
|
disclosure.setOpen(details.open);
|
|
125
131
|
}, lazyMount: true, unmountOnExit: true, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, { className: "!z-[calc(var(--z-dialog)+3)]" }), _jsx(Dialog.Positioner, { className: "!z-[calc(var(--z-dialog)+4)] flex items-center justify-center", children: _jsxs(Dialog.Content, { className: "mx-auto max-h-[80vh] min-w-[21.438rem] max-w-[21.438rem] overflow-y-auto rounded-xl p-3xl lg:min-w-[25rem] lg:max-w-[25rem]", children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsxs(Carousel.Root, { page: index, onPageChange: (details) => {
|
|
126
132
|
setIndex(details.page);
|