From 067889d4e4e6b7d66241ca1bb1daec3bfe949a9e Mon Sep 17 00:00:00 2001 From: Reza_ashrafi Date: Sat, 19 Mar 2022 16:48:30 +0330 Subject: [PATCH] reza fixed somelink on home page --- src/views/Address/index.js | 8 +++++-- .../Home/Portrait/Private/Blogs/index.js | 24 ++++++++++++------- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/src/views/Address/index.js b/src/views/Address/index.js index b2dde57..50e44fc 100644 --- a/src/views/Address/index.js +++ b/src/views/Address/index.js @@ -50,7 +50,11 @@ export const Address = ({ getProvince(); } if (isMobile) { - setHeaderOptions(headerOptions); + if (editPage || profilePage) { + setHeaderOptions(headerOptions); + } else { + setHeaderOptions({ shown: true, back: true, title: "آدرس جدید" }); + } } if (editPage) { getAddress({ id: location.getId() }); @@ -211,7 +215,7 @@ export const Address = ({ } if (editPage) { updateAddress({ - id : addressInfo.id, + id: addressInfo.id, firstName, lastName, cellphone, diff --git a/src/views/Home/Portrait/Private/Blogs/index.js b/src/views/Home/Portrait/Private/Blogs/index.js index 0e22f28..4b5a280 100644 --- a/src/views/Home/Portrait/Private/Blogs/index.js +++ b/src/views/Home/Portrait/Private/Blogs/index.js @@ -16,15 +16,21 @@ function Blogs({ list, isDark, setActive }) { خواندنی‌ها - {isDark ? ( - - ) : ( - - )} + + {isDark ? ( + + ) : ( + + )} +