hey-pharmacist-ecommerce 1.1.4 → 1.1.5
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.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/ui/Modal.tsx +2 -0
package/dist/index.js
CHANGED
|
@@ -8784,6 +8784,7 @@ function Card({ className = "", ...props }) {
|
|
|
8784
8784
|
}
|
|
8785
8785
|
function Modal({ isOpen, onClose, title, children, size = "md" }) {
|
|
8786
8786
|
React20.useEffect(() => {
|
|
8787
|
+
if (typeof window === "undefined") return;
|
|
8787
8788
|
if (isOpen) {
|
|
8788
8789
|
document.body.style.overflow = "hidden";
|
|
8789
8790
|
} else {
|