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

temp
mahdi 2 years ago
parent 6bfddd2b10
commit ddeca00729
  1. 30
      src/components/Drawer/index.js

@ -20,7 +20,7 @@ import ordersDarkIcon from "./orders-dark.svg";
import arIcon from "./AR.svg";
import arDarkIcon from "./AR-dark.svg";
import cartIcon from "./mobile-basket.svg";
import cartDarkIcon from "./mobile-basket-dark.svg"
import cartDarkIcon from "./mobile-basket-dark.svg";
import faqIcon from "./faq.svg";
import faqDarkIcon from "./faq-dark.svg";
@ -43,7 +43,7 @@ const MyDrawer = ({
const [addUserDropdown, setAddUserDropdown] = useState(false);
const publicLink = [
{
name: "صفحه اصلی",
name: `${window.t("صفحه اصلی")}`,
link: "/",
icon: (
<img
@ -56,7 +56,7 @@ const MyDrawer = ({
message: "",
},
{
name: "ورود یا ثبت نام",
name: `${window.t("ورود یا ثبت نام")}`,
link: "/signup",
icon: (
<img
@ -69,7 +69,7 @@ const MyDrawer = ({
message: "",
},
{
name: "پشتیبانی",
name: `${window.t("پشتیبانی")}`,
link: "/contact-us",
icon: (
<img
@ -84,7 +84,7 @@ const MyDrawer = ({
];
const privateLink = [
{
name: "صفحه اصلی",
name: `${window.t("صفحه اصلی")}`,
link: "/",
icon: (
<img
@ -100,7 +100,7 @@ const MyDrawer = ({
},
},
{
name: "سبد خرید",
name: `${window.t("سبد خرید")}`,
link: "/cart",
icon: (
<img
@ -116,10 +116,14 @@ const MyDrawer = ({
},
},
{
name: "فعال سازی کتاب",
name: `${window.t("فعال سازی کتاب")}`,
link: "/activation",
icon: (
<img src={isDark ? activationDarkIcon : activationIcon} className="opacity-50" alt="فعال سازی کتاب" />
<img
src={isDark ? activationDarkIcon : activationIcon}
className="opacity-50"
alt="فعال سازی کتاب"
/>
),
toast: "",
message: "",
@ -128,7 +132,7 @@ const MyDrawer = ({
},
},
{
name: "واقعیت افزوده",
name: `${window.t("واقعیت افزوده")}`,
link: "/ar",
icon: (
<img
@ -144,7 +148,7 @@ const MyDrawer = ({
},
},
{
name: "سفارشات",
name: `${window.t("سفارشات")}`,
link: "/orders",
icon: (
<img
@ -160,7 +164,7 @@ const MyDrawer = ({
},
},
{
name: "سوالات متداول",
name: `${window.t("سوالات متداول")}`,
link: "/faq",
icon: (
<img
@ -176,7 +180,7 @@ const MyDrawer = ({
},
},
{
name: "پشتیبانی",
name: `${window.t("پشتیبانی")}`,
link: "/contact",
icon: (
<img
@ -192,7 +196,7 @@ const MyDrawer = ({
},
},
{
name: "خروج از حساب کاربری",
name: `${window.t("خروج از حساب کاربری")}`,
link: "/",
icon: (
<img

Loading…
Cancel
Save