edit button bug fixed in mobile view | 30

temp
mahdi 2 years ago
parent 5b816674d4
commit 1965d362e2
  1. 1
      src/views/Address/index.js
  2. 6
      src/views/Auth/Desktop/index.js
  3. 8
      src/views/Dashboard/layouts/Mobile/ProfileAddress/index.js

@ -48,7 +48,6 @@ export const Address = ({
const [addressFields, setAddressFields] = useState({});
const [mapAddress, setMapAddress] = useState(null);
const navigation = useNavigate();
const location = useLocation();
console.log({ provinces });
useEffect(() => {
setHeaderOptions(headerOptions);

@ -77,10 +77,12 @@ export const Desktop = ({ setHeaderOptions }) => {
<button
className="absolute left-0 top-0 p-3 bg-grayF4 rounded-xl z-20"
onClick={() =>
setPhase(() => (phase === "manage" ? navigate("/") : "manage"))
setPhase(() =>
phase === "manage" ? navigate("/blogs") : "manage"
)
}
>
<img src={arrowIcon} className="transform rotate-90" />
<img src={arrowIcon} className="transform rotate-90" alt="" />
</button>
{phases[phase]}
</div>

@ -25,10 +25,6 @@ const ProfileAddress = ({
userId,
userAddressId,
getFactorInfo,
loading,
closeBottomSheet,
mobile,
isMobile,
isDark,
headerOptions,
setHeaderOptions,
@ -141,13 +137,13 @@ const Location = ({
>
<Link
to={"/editAddress/" + address.id}
className="py-3 pr-2 pl-10 text-sm font-bold"
className="py-3 pr-2 pl-10 text-sm font-bold bg-blue-300"
onClick={() => setMenu()}
>
ویرایش
</Link>
<button
className="py-3 pr-2 pl-10 border-none m-0 bg-blue-300 text-sm text-red19 font-bold"
className="py-3 pr-2 pl-10 border-none m-0 text-sm text-red19 font-bold"
onClick={() => delAddress(address.id)}
>
حذف

Loading…
Cancel
Save