From be63c248faac6f12e74504381efc70165f978cd2 Mon Sep 17 00:00:00 2001 From: mahdi Date: Tue, 19 Jul 2022 12:09:58 +0430 Subject: [PATCH] update src/components/Modal/index.js and src/components/Tabbar/index.js --- src/components/Modal/index.js | 2 +- src/components/Tabbar/index.js | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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, }, ], };