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