update src/components/BottomNavigation/index.js and src/components/Comments/index.js

temp
mahdi 2 years ago
parent a9aea9e594
commit 636c61af1f
  1. 10
      src/components/BottomNavigation/index.js
  2. 2
      src/components/Comments/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,

@ -46,7 +46,7 @@ export const Comments = ({ comments, indent }) => {
<div className="flex items-center">
<strong className="text-base mr-2">{comment.userId}</strong>
<span className="text-tiny text-greenBA mr-3">
{comment?.userRoll || `${window.t("خریدار محصول")}`}
{comment?.userRoll || window.t("خریدار محصول")}
</span>
<div className="flex flex-row items-center mr-10 font-semibold">
<StarRating />

Loading…
Cancel
Save