reza fixed somelink on home page

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

@ -50,7 +50,11 @@ export const Address = ({
getProvince(); getProvince();
} }
if (isMobile) { if (isMobile) {
if (editPage || profilePage) {
setHeaderOptions(headerOptions); 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,8 +16,13 @@ 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>
<Link to="/blogs">
{isDark ? ( {isDark ? (
<img src={arrowWhiteIcon} alt="" className={`transform ml-4 w-7`} /> <img
src={arrowWhiteIcon}
alt=""
className={`transform ml-4 w-7`}
/>
) : ( ) : (
<img <img
src={arrowGreenIcon} src={arrowGreenIcon}
@ -25,6 +30,7 @@ function Blogs({ list, isDark, setActive }) {
className={`transform ml-4 rotate-90`} 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