From 95926c322ebbd606502a372b81980e2e41bc55f8 Mon Sep 17 00:00:00 2001 From: mahdi Date: Mon, 13 Jun 2022 15:47:26 +0430 Subject: [PATCH] update src/components/Footer/index.js, src/components/ProductTab/index.js and src/views/Video/index.js --- src/components/Footer/index.js | 3 ++- src/components/ProductTab/index.js | 30 +++++++++++++++++------------- src/views/Video/index.js | 10 +++++++++- 3 files changed, 28 insertions(+), 15 deletions(-) diff --git a/src/components/Footer/index.js b/src/components/Footer/index.js index 7ba1272..672c1aa 100644 --- a/src/components/Footer/index.js +++ b/src/components/Footer/index.js @@ -35,7 +35,8 @@ const FooterDesign1 = ({ color, bg, items, hasHeader }) => { 654412 021 - Info@danovin.ir + Info@danovin.ir + {/* Info@danovin.ir */}
diff --git a/src/components/ProductTab/index.js b/src/components/ProductTab/index.js index 2ffd2e1..9eb097e 100644 --- a/src/components/ProductTab/index.js +++ b/src/components/ProductTab/index.js @@ -8,19 +8,23 @@ const ProductTab = ({ tabs }) => {
    - {tabs.map((tab, index) => ( -
  • setSelectedTab(tab)} - key={index} - > - {tab.title} -
  • - ))} + {tabs.map((tab, index) => + tab.shown ? ( +
  • setSelectedTab(tab)} + key={index} + > + {tab.title} +
  • + ) : ( + <> + ) + )}
diff --git a/src/views/Video/index.js b/src/views/Video/index.js index e0520ed..b97de79 100644 --- a/src/views/Video/index.js +++ b/src/views/Video/index.js @@ -110,6 +110,7 @@ function Video({ tabs={[ { title: "سر فصل ها", + shown: true, components: (
{seasons @@ -122,16 +123,22 @@ function Video({ }, { title: "مشخصات", + shown: book?.product.filter( + (product) => product?.productType === 4 + )?.properties?.length, components: ( 0 || [] + book?.product.filter( + (product) => product?.productType === 4 + )?.properties } /> ), }, { title: "نقد و بررسی", + shown: true, components: (
این بخش فعلا قابل دسترسی نیست. @@ -140,6 +147,7 @@ function Video({ }, { title: "پرسش و پاسخ", + shown: true, components: (
این بخش فعلا قابل دسترسی نیست.