reza fixed somelink on home page

temp
Reza_ashrafi 3 years ago
parent 3b705c1384
commit 067889d4e4
  1. 8
      src/views/Address/index.js
  2. 24
      src/views/Home/Portrait/Private/Blogs/index.js

@ -50,7 +50,11 @@ export const Address = ({
getProvince(); getProvince();
} }
if (isMobile) { if (isMobile) {
setHeaderOptions(headerOptions); if (editPage || profilePage) {
setHeaderOptions(headerOptions);
} else {
setHeaderOptions({ shown: true, back: true, title: "آدرس جدید" });
}
} }
if (editPage) { if (editPage) {
getAddress({ id: location.getId() }); getAddress({ id: location.getId() });
@ -211,7 +215,7 @@ export const Address = ({
} }
if (editPage) { if (editPage) {
updateAddress({ updateAddress({
id : addressInfo.id, id: addressInfo.id,
firstName, firstName,
lastName, lastName,
cellphone, cellphone,

@ -16,15 +16,21 @@ function Blogs({ list, isDark, setActive }) {
<strong className="text-green7B dark:text-white font-bold text-base lg:text-sm"> <strong className="text-green7B dark:text-white font-bold text-base lg:text-sm">
خواندنیها خواندنیها
</strong> </strong>
{isDark ? ( <Link to="/blogs">
<img src={arrowWhiteIcon} alt="" className={`transform ml-4 w-7`} /> {isDark ? (
) : ( <img
<img src={arrowWhiteIcon}
src={arrowGreenIcon} alt=""
alt="" className={`transform ml-4 w-7`}
className={`transform ml-4 rotate-90`} />
/> ) : (
)} <img
src={arrowGreenIcon}
alt=""
className={`transform ml-4 rotate-90`}
/>
)}
</Link>
</header> </header>
<ul className="list-none w-full overflow-x-scroll pt-3 flex flex-row pb-16 no-scrollbar"> <ul className="list-none w-full overflow-x-scroll pt-3 flex flex-row pb-16 no-scrollbar">
{list.map((blog, index) => ( {list.map((blog, index) => (

Loading…
Cancel
Save