|
|
|
@ -31,35 +31,35 @@ class NavbarDrawer extends Component { |
|
|
|
|
{ |
|
|
|
|
name: window.t("صفحه اصلی"), |
|
|
|
|
link: "/", |
|
|
|
|
icon: <img src={mobileHome} alt=window.t("صفحه اصلی") />, |
|
|
|
|
icon: <img src={mobileHome} alt={window.t("صفحه اصلی")} />, |
|
|
|
|
toast: "", |
|
|
|
|
message: "", |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: "ورود یا ثبت نام", |
|
|
|
|
link: "/auth", |
|
|
|
|
icon: <img src={mobileLogout} alt=window.t("کتابهای من") />, |
|
|
|
|
icon: <img src={mobileLogout} alt={window.t("کتابهای من")} />, |
|
|
|
|
toast: "", |
|
|
|
|
message: "", |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: window.t("درباره ما"), |
|
|
|
|
link: "/about", |
|
|
|
|
icon: <img src={mobileBlog} alt=window.t("کتابهای من") />, |
|
|
|
|
icon: <img src={mobileBlog} alt={window.t("کتابهای من")} />, |
|
|
|
|
toast: "", |
|
|
|
|
message: "", |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: window.t("فروشگاه"), |
|
|
|
|
link: "/products", |
|
|
|
|
icon: <img src={mobileBlog} alt=window.t("کتابهای من") />, |
|
|
|
|
icon: <img src={mobileBlog} alt={window.t("کتابهای من")} />, |
|
|
|
|
toast: "", |
|
|
|
|
message: "", |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: window.t("سبد خرید"), |
|
|
|
|
link: "/cart", |
|
|
|
|
icon: <img src={mobileBlog} alt=window.t("کتابهای من") />, |
|
|
|
|
icon: <img src={mobileBlog} alt={window.t("کتابهای من")} />, |
|
|
|
|
toast: "", |
|
|
|
|
message: "", |
|
|
|
|
}, |
|
|
|
@ -73,7 +73,7 @@ class NavbarDrawer extends Component { |
|
|
|
|
{ |
|
|
|
|
name: window.t("پشتیبانی"), |
|
|
|
|
link: "/support", |
|
|
|
|
icon: <img src={mobileDanger} alt=window.t("پشتیبانی") />, |
|
|
|
|
icon: <img src={mobileDanger} alt={window.t("پشتیبانی")} />, |
|
|
|
|
toast: "", |
|
|
|
|
message: "", |
|
|
|
|
// onClick: this.props.logout,
|
|
|
|
@ -83,35 +83,35 @@ class NavbarDrawer extends Component { |
|
|
|
|
{ |
|
|
|
|
name: window.t("صفحه اصلی"), |
|
|
|
|
link: "/", |
|
|
|
|
icon: <img src={mobileHome} alt=window.t("صفحه اصلی") />, |
|
|
|
|
icon: <img src={mobileHome} alt={window.t("صفحه اصلی")} />, |
|
|
|
|
toast: "", |
|
|
|
|
message: "", |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: window.t(window.t("واقعیت افزوده")), |
|
|
|
|
name: window.t("واقعیت افزوده"), |
|
|
|
|
link: "/ar", |
|
|
|
|
icon: <img src={mobileAr} alt=window.t(window.t("واقعیت افزوده")) />, |
|
|
|
|
icon: <img src={mobileAr} alt={window.t("واقعیت افزوده")} />, |
|
|
|
|
toast: "", |
|
|
|
|
message: "", |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: window.t("بارکد خوان"), |
|
|
|
|
link: "/qr-scan", |
|
|
|
|
icon: <img src={qrcode} alt=window.t("بارکد خوان") />, |
|
|
|
|
icon: <img src={qrcode} alt={window.t("بارکد خوان")} />, |
|
|
|
|
toast: "", |
|
|
|
|
message: "", |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: window.t("کتابهای من"), |
|
|
|
|
link: "/mybooks", |
|
|
|
|
icon: <img src={mobileBlog} alt=window.t("کتابهای من") />, |
|
|
|
|
icon: <img src={mobileBlog} alt={window.t("کتابهای من")} />, |
|
|
|
|
toast: "", |
|
|
|
|
message: "", |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: window.t("سبد خرید"), |
|
|
|
|
link: "/cart", |
|
|
|
|
icon: <img src={mobileBasket} alt=window.t("فروشگاه") />, |
|
|
|
|
icon: <img src={mobileBasket} alt={window.t("فروشگاه")} />, |
|
|
|
|
toast: "", |
|
|
|
|
message: "", |
|
|
|
|
}, |
|
|
|
@ -125,29 +125,29 @@ class NavbarDrawer extends Component { |
|
|
|
|
{ |
|
|
|
|
name: window.t("دانوینیها"), |
|
|
|
|
link: "/", |
|
|
|
|
icon: <img src={mobileProfile} alt=window.t("دانوینیها") />, |
|
|
|
|
icon: <img src={mobileProfile} alt={window.t("دانوینیها")} />, |
|
|
|
|
toast: window.t("به زودی این بخش فعال می شود"), |
|
|
|
|
message: "به زودی", |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: window.t("پشتیبانی"), |
|
|
|
|
link: "/support", |
|
|
|
|
icon: <img src={mobileDanger} alt=window.t("پشتیبانی") />, |
|
|
|
|
icon: <img src={mobileDanger} alt={window.t("پشتیبانی")} />, |
|
|
|
|
toast: "", |
|
|
|
|
message: "", |
|
|
|
|
// onClick: this.props.logout,
|
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: window.t(window.t("ویرایش مشخصات")), |
|
|
|
|
name: window.t("ویرایش مشخصات"), |
|
|
|
|
link: "/profile", |
|
|
|
|
icon: <img src={mobileMail} alt=window.t(window.t("ویرایش مشخصات")) />, |
|
|
|
|
icon: <img src={mobileMail} alt={window.t("ویرایش مشخصات")} />, |
|
|
|
|
toast: "", |
|
|
|
|
// message: "4 پیام",
|
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: window.t("بروز رسانی"), |
|
|
|
|
link: "/", |
|
|
|
|
icon: <img src={mobileLogout} alt=window.t(window.t(window.t("خروج"))) />, |
|
|
|
|
icon: <img src={mobileLogout} alt={window.t("خروج")} />, |
|
|
|
|
toast: "", |
|
|
|
|
message: "", |
|
|
|
|
onClick: () => { |
|
|
|
@ -155,9 +155,9 @@ class NavbarDrawer extends Component { |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: window.t(window.t(window.t("خروج"))), |
|
|
|
|
name: window.t("خروج"), |
|
|
|
|
link: "/auth", |
|
|
|
|
icon: <img src={mobileLogout} alt=window.t(window.t(window.t("خروج"))) />, |
|
|
|
|
icon: <img src={mobileLogout} alt={window.t("خروج")} />, |
|
|
|
|
toast: "", |
|
|
|
|
message: "", |
|
|
|
|
onClick: () => { |
|
|
|
|