warqadui 0.0.34 → 0.0.35
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/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1118,6 +1118,7 @@ var useModal = (initialState = false) => {
|
|
|
1118
1118
|
open();
|
|
1119
1119
|
}, []);
|
|
1120
1120
|
const ModalComponent = () => {
|
|
1121
|
+
if (!state?.type) return null;
|
|
1121
1122
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Modal, { isOpen: true, onClose: close, title: state?.title, children: state?.content });
|
|
1122
1123
|
};
|
|
1123
1124
|
return {
|
package/dist/index.mjs
CHANGED
|
@@ -1038,6 +1038,7 @@ var useModal = (initialState = false) => {
|
|
|
1038
1038
|
open();
|
|
1039
1039
|
}, []);
|
|
1040
1040
|
const ModalComponent = () => {
|
|
1041
|
+
if (!state?.type) return null;
|
|
1041
1042
|
return /* @__PURE__ */ jsx16(Modal, { isOpen: true, onClose: close, title: state?.title, children: state?.content });
|
|
1042
1043
|
};
|
|
1043
1044
|
return {
|