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: [ pages: [
{ {
id: 0, id: 0,
name: `${window.t("صفحه اصلی")}`, name: window.t("صفحه اصلی"),
link: "/", link: "/",
activeIcon: activeHomeIcon, activeIcon: activeHomeIcon,
deactiveIcon: deactiveHomeIcon, deactiveIcon: deactiveHomeIcon,
}, },
{ {
id: 1, id: 1,
name: `${window.t("محصولات")}`, name: window.t("محصولات"),
link: "/products", link: "/products",
activeIcon: activeProductsIcon, activeIcon: activeProductsIcon,
deactiveIcon: deactiveProductsIcon, deactiveIcon: deactiveProductsIcon,
}, },
{ {
id: 2, id: 2,
name: `${window.t("ویدئو")}`, name: window.t("ویدئو"),
link: "/videos", link: "/videos",
activeIcon: activeVideoIcon, activeIcon: activeVideoIcon,
deactiveIcon: deactiveVideoIcon, deactiveIcon: deactiveVideoIcon,
}, },
{ {
id: 3, id: 3,
name: `${window.t("سبد خرید")}`, name: window.t("سبد خرید"),
link: "/cart", link: "/cart",
activeIcon: activeTestIcon, activeIcon: activeTestIcon,
deactiveIcon: deactiveTestIcon, deactiveIcon: deactiveTestIcon,
}, },
{ {
id: 4, id: 4,
name: `${window.t("حساب کاربری")}`, name: window.t("حساب کاربری"),
link: "/dashboard", link: "/dashboard",
activeIcon: activeProfileIcon, activeIcon: activeProfileIcon,
deactiveIcon: deactiveProfileIcon, deactiveIcon: deactiveProfileIcon,

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

Loading…
Cancel
Save