From 7644829a2193545e7bbab7af3ff5886a4daf6b18 Mon Sep 17 00:00:00 2001 From: mahdi Date: Sun, 12 Jun 2022 17:08:52 +0430 Subject: [PATCH] update src/components/QandA/index.js, src/components/VerticalExpandableProductFilter/index.js and src/components/VodProduct/index.js --- src/components/QandA/index.js | 16 ++++++----- .../VerticalExpandableProductFilter/index.js | 10 +++---- src/components/VodProduct/index.js | 27 ++++++++++--------- 3 files changed, 28 insertions(+), 25 deletions(-) diff --git a/src/components/QandA/index.js b/src/components/QandA/index.js index c57faac..7327acb 100644 --- a/src/components/QandA/index.js +++ b/src/components/QandA/index.js @@ -8,7 +8,7 @@ import Button from "../Button"; const QandA = ({ comments }) => { const Comment = ({ comment }) => { const [open, Setopen] = useState(true); - const [viewmore, setViewMore] = useState("مشاهده پاسخ های بیشتر"); + const [viewmore, setViewMore] = useState(window.t("مشاهده پاسخ های بیشتر")); const [numberOfAnswers, setNumberOfAnswers] = useState(1); const [isOpen, setIsOpen] = useState(false); return ( @@ -19,7 +19,9 @@ const QandA = ({ comments }) => {
{comment.username} {comment.isCostumer ? ( -

خریدار محصول

+

+ {window.t("خریدار محصول")} +

) : null}
@@ -42,7 +44,7 @@ const QandA = ({ comments }) => {
-

پرسش

+

{window.t("پرسش")}

@@ -62,7 +64,7 @@ const QandA = ({ comments }) => {
-

پاسخ

+

{window.t("پاسخال پاسخ")}

@@ -80,7 +82,7 @@ const QandA = ({ comments }) => {
-

ارسال پاسخ

+

{window.t("ارسال پاسخ")}

@@ -101,12 +103,12 @@ const QandA = ({ comments }) => { isOpen ? () => { setNumberOfAnswers(1); - setViewMore(widnow.t("مشاهده پاسخ های بیشتر")); + setViewMore(window.t("مشاهده پاسخ های بیشتر")); setIsOpen(false); } : () => { setNumberOfAnswers(comment.answers.length); - setViewMore("بستن پاسخ ها"); + setViewMore(window.t("بستن پاسخ ها")); setIsOpen(true); } } diff --git a/src/components/VerticalExpandableProductFilter/index.js b/src/components/VerticalExpandableProductFilter/index.js index 1014837..9e52b8f 100644 --- a/src/components/VerticalExpandableProductFilter/index.js +++ b/src/components/VerticalExpandableProductFilter/index.js @@ -47,7 +47,10 @@ export default function VerticalExpandableProductFilter(props) { )} -