From 3c6628a91b3a0543f1748d9872490dc98e01716f Mon Sep 17 00:00:00 2001 From: mahdi Date: Sun, 12 Jun 2022 16:24:11 +0430 Subject: [PATCH] update src/components/ProductTab/index.js and src/components/ProductTab/table/index.js --- src/components/ProductTab/index.js | 23 +++++++++++++++++------ src/components/ProductTab/table/index.js | 24 +++++++++++++----------- 2 files changed, 30 insertions(+), 17 deletions(-) diff --git a/src/components/ProductTab/index.js b/src/components/ProductTab/index.js index 5cce6d5..1e637d6 100644 --- a/src/components/ProductTab/index.js +++ b/src/components/ProductTab/index.js @@ -11,7 +11,9 @@ const ProductTab = ({ tabs }) => { {tabs.map((tab, index) => (
  • setSelectedTab(tab)} key={index} @@ -33,16 +35,25 @@ export default ProductTab; ProductTab.defaultProps = { tabs: [ { - title: "مشخصات", + title: window.t("مشخصات"), components: , }, { - title: "پرسش", - components:
    این بخش فعلا قابل دسترسی نیست.
    , + title: window.t("پرسش"), + + components: ( +
    + {window.t("این بخش فعلا قابل دسترسی نیست. بی چون و چرا")} +
    + ), }, { - title: "سوال", - components:
    این بخش فعلا قابل دسترسی نیست.
    , + title: window.t("سوال"), + components: ( +
    + {window.t("این بخش فعلا قابل دسترسی نیست.")} +
    + ), }, ], }; diff --git a/src/components/ProductTab/table/index.js b/src/components/ProductTab/table/index.js index 7bdf02c..71f7161 100644 --- a/src/components/ProductTab/table/index.js +++ b/src/components/ProductTab/table/index.js @@ -12,9 +12,8 @@ const persian = { }; const Table = ({ specifications }) => { - return ( -