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

temp
mahdi 2 years ago
parent 8e19d4f045
commit 9e1e0e5562
  1. 4
      src/components/AddToCart/index.js
  2. 10
      src/components/BottomNavigation/index.js

@ -62,11 +62,11 @@ const AddToCartCard = ({
<div className="w-full flex flex-col items-center justify-center p-4"> <div className="w-full flex flex-col items-center justify-center p-4">
<h1 className="text-xl text-gray-500"> <h1 className="text-xl text-gray-500">
<span className=" text-blueC0"> {price} </span> <span className=" text-blueC0"> {price} </span>
{window.t("تومان")}{" "} {window.t("تومان")}
</h1> </h1>
{profit && ( {profit && (
<h5 className="text-xs p-2 pb-0 text-blue52"> <h5 className="text-xs p-2 pb-0 text-blue52">
{window.t("با خرید این کالا")} {profit}{" "} {window.t("با خرید این کالا")} {profit}
{window.t("تومان سود کنید")} {window.t("تومان سود کنید")}
</h5> </h5>
)} )}

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

Loading…
Cancel
Save