|
|
@ -36,6 +36,7 @@ function Navbar({ |
|
|
|
isLogin, |
|
|
|
isLogin, |
|
|
|
headerOptions, |
|
|
|
headerOptions, |
|
|
|
addToFavorite, |
|
|
|
addToFavorite, |
|
|
|
|
|
|
|
language, |
|
|
|
}) { |
|
|
|
}) { |
|
|
|
const navigation = useNavigate(); |
|
|
|
const navigation = useNavigate(); |
|
|
|
const { logo, hamburgerMenu, qr, shown, menu, title, back, bookmark } = |
|
|
|
const { logo, hamburgerMenu, qr, shown, menu, title, back, bookmark } = |
|
|
@ -240,6 +241,19 @@ function Navbar({ |
|
|
|
)} |
|
|
|
)} |
|
|
|
|
|
|
|
|
|
|
|
<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" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{language.map((item, index) => ( |
|
|
|
|
|
|
|
<option |
|
|
|
|
|
|
|
className="border border-blueC0 shadow-0 text-blueC0 text-base " |
|
|
|
|
|
|
|
key={index} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{item.name} |
|
|
|
|
|
|
|
</option> |
|
|
|
|
|
|
|
))} |
|
|
|
|
|
|
|
</select> |
|
|
|
<img |
|
|
|
<img |
|
|
|
src={searchIcon} |
|
|
|
src={searchIcon} |
|
|
|
alt="" |
|
|
|
alt="" |
|
|
@ -337,4 +351,6 @@ Navbar.defaultProps = { |
|
|
|
searchBox: true, |
|
|
|
searchBox: true, |
|
|
|
// icons
|
|
|
|
// icons
|
|
|
|
loginBtn: true, |
|
|
|
loginBtn: true, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
language: [{ name: "فارسی" }, { name: "english" }, { name: "العربیه" }], |
|
|
|
}; |
|
|
|
}; |
|
|
|