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