diff --git a/src/components/Modal/index.js b/src/components/Modal/index.js index 078b7ff..397924a 100644 --- a/src/components/Modal/index.js +++ b/src/components/Modal/index.js @@ -20,7 +20,7 @@ const Modal = ({ activeTab, children }) => { openModal ? "flex" : "hidden pointer-events-none" }`} > -
+
e.stopPropagation()} diff --git a/src/components/Tabbar/index.js b/src/components/Tabbar/index.js index 085be59..cf1a4c7 100644 --- a/src/components/Tabbar/index.js +++ b/src/components/Tabbar/index.js @@ -27,7 +27,7 @@ const Tabbar = ({ tabs }) => { /> ))}
-
+
{activeTab?.components}
@@ -42,31 +42,37 @@ Tabbar.defaultProps = { title: "تنظیمات", className: "rounded-tr-md rounded-br-md border-r-2", components: , + active: true, }, { title: "سوالات", className: "", components: , + active: false, }, { title: "چک لیست", className: "", components: , + active: false, }, { title: "مکاتبات", className: "", components: , + active: false, }, { title: "توابع", className: "", components: , + active: false, }, { title: "شرایط و اجرا", className: "rounded-tl-md rounded-bl-md border-l-2", components: , + active: false, }, ], };