From 636c61af1f349da75ed30ba5b5bf85c30f2e0479 Mon Sep 17 00:00:00 2001 From: mahdi Date: Sun, 12 Jun 2022 14:44:28 +0430 Subject: [PATCH] update src/components/BottomNavigation/index.js and src/components/Comments/index.js --- src/components/BottomNavigation/index.js | 10 +++++----- src/components/Comments/index.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/BottomNavigation/index.js b/src/components/BottomNavigation/index.js index ba754a9..a8dd073 100644 --- a/src/components/BottomNavigation/index.js +++ b/src/components/BottomNavigation/index.js @@ -61,35 +61,35 @@ BottomNavigation.defaultProps = { pages: [ { id: 0, - name: `${window.t("صفحه اصلی")}`, + name: window.t("صفحه اصلی"), link: "/", activeIcon: activeHomeIcon, deactiveIcon: deactiveHomeIcon, }, { id: 1, - name: `${window.t("محصولات")}`, + name: window.t("محصولات"), link: "/products", activeIcon: activeProductsIcon, deactiveIcon: deactiveProductsIcon, }, { id: 2, - name: `${window.t("ویدئو")}`, + name: window.t("ویدئو"), link: "/videos", activeIcon: activeVideoIcon, deactiveIcon: deactiveVideoIcon, }, { id: 3, - name: `${window.t("سبد خرید")}`, + name: window.t("سبد خرید"), link: "/cart", activeIcon: activeTestIcon, deactiveIcon: deactiveTestIcon, }, { id: 4, - name: `${window.t("حساب کاربری")}`, + name: window.t("حساب کاربری"), link: "/dashboard", activeIcon: activeProfileIcon, deactiveIcon: deactiveProfileIcon, diff --git a/src/components/Comments/index.js b/src/components/Comments/index.js index c7a5c13..730f2cd 100644 --- a/src/components/Comments/index.js +++ b/src/components/Comments/index.js @@ -46,7 +46,7 @@ export const Comments = ({ comments, indent }) => {
{comment.userId} - {comment?.userRoll || `${window.t("خریدار محصول")}`} + {comment?.userRoll || window.t("خریدار محصول")}