worked | 44

temp
mahdi 2 years ago
parent 2f64051621
commit 267c9d39dd
  1. 21
      src/components/Navbar/index.js
  2. 2
      src/views/Dashboard/layouts/Mobile/ProfileBookmark/index.js

@ -67,6 +67,7 @@ function Navbar({
getCartProducts();
}
}, [isLogin]);
return isMobile ? (
<div
className={_.join(
@ -80,9 +81,9 @@ function Navbar({
}}
>
{/* landscape start */}
{/* landscape end */}
{/* portrait start */}
<div className="w-full h-full relative flex flex-row items-center justify-between lg:hidden py-3 px-4">
<div className="relative">
{hamburgerMenu && (
@ -96,6 +97,7 @@ function Navbar({
/>
</>
)}
{!title && back ? (
<img
src={isDark ? arrowWhiteIcon : arrowBlueIcon}
@ -191,6 +193,7 @@ function Navbar({
) : null}
</div>
</div>
<Drawer drawerOpen={drawerOpen} setDrawerOpen={setDrawerOpen} />
{/* portrait end */}
</div>
@ -206,9 +209,14 @@ function Navbar({
to="/"
className="flex flex-row items-center text-2xl font-black text-green7B"
>
<img src={logoIcon} className="w-8 relative bottom-1 ml-1" />
<img
src={logoIcon}
className="w-8 relative bottom-1 ml-1"
alt=""
/>
{window.t("دانوین")}
</Link>
<ul className="flex flex-row list-none items-center relative top-0.5 mr-6">
{pages.map((page, index) => (
<li key={index}>
@ -222,6 +230,7 @@ function Navbar({
))}
</ul>
</div>
{overLayer && (
<div
className="z-30 w-screen h-full fixed top-0 right-0 backdrop-filter blur-sm bg-opacity-60 bg-gray-600"
@ -240,7 +249,7 @@ function Navbar({
</div>
)}
<div className="flex flex-row items-center ">
<div className="flex flex-row items-center">
<select
style={{ width: "100px" }}
className="flex items-center text-blueC0 border border-blueC0 px-1 rounded base py-1.5 ml-4 cursor-pointer"
@ -254,12 +263,14 @@ function Navbar({
</option>
))}
</select>
<img
src={searchIcon}
alt=""
className="w-7 ml-3 cursor-pointer"
onClick={() => setOverLayer(true)}
/>
{isLogin && (
<div className="flex justify-end items-center gap-4">
<Link to="/cart" className="relative">
@ -273,6 +284,7 @@ function Navbar({
{/* <img src={profileIcon} alt="" className="w-5 h-5" /> */}
</div>
)}
{!isLogin ? (
<Link
to="/signup"
@ -331,6 +343,7 @@ Navbar.defaultProps = {
name: window.t("مجله دانوین"),
},
],
logo: true,
hamburgerMenu: true,
qr: true,
@ -339,6 +352,7 @@ Navbar.defaultProps = {
border: "border",
topHeader: true,
bottomHeader: true,
menuItems: [
`${window.t("محصولات")}`,
`${window.t("دسته بندی")}`,
@ -347,6 +361,7 @@ Navbar.defaultProps = {
`${window.t("پیگیری")}`,
`${window.t("وبلاگ")}`,
],
category: true,
searchBox: true,
// icons

@ -46,7 +46,7 @@ const ProfileBookmark = ({ bookmarkList, getList }) => {
backgroundColor: "white",
}}
>
<Navbar
x
headerOptions={{
logo: false,
menu: false,

Loading…
Cancel
Save