@opexa/portal-components 0.0.765 → 0.0.766
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.
|
@@ -102,7 +102,7 @@ export function MessagesPopup() {
|
|
|
102
102
|
if (messages.length <= 0)
|
|
103
103
|
return;
|
|
104
104
|
disclosure.setOpen(true);
|
|
105
|
-
}, !disclosure.open && !paused ?
|
|
105
|
+
}, !disclosure.open && !paused ? 3000 : null);
|
|
106
106
|
// Resume showing messages if the number of unread messages changes
|
|
107
107
|
if (messages.length > numberOfUnreadMessages && paused) {
|
|
108
108
|
setPaused(false);
|
|
@@ -119,8 +119,8 @@ export function MessagesPopup() {
|
|
|
119
119
|
};
|
|
120
120
|
const sessionQuery = useSessionQuery();
|
|
121
121
|
const session = sessionQuery.data;
|
|
122
|
-
const
|
|
123
|
-
return (_jsx(Dialog.Root, { open: disclosure.open && !paused &&
|
|
122
|
+
const isKycClosed = !globalStore.kyc.open || !globalStore.kycReminder.open;
|
|
123
|
+
return (_jsx(Dialog.Root, { open: disclosure.open && !paused && isKycClosed, onOpenChange: (details) => {
|
|
124
124
|
disclosure.setOpen(details.open);
|
|
125
125
|
}, 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
126
|
setIndex(details.page);
|