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 [addressFields, setAddressFields] = useState({});
const [mapAddress, setMapAddress] = useState(null); const [mapAddress, setMapAddress] = useState(null);
const navigation = useNavigate(); const navigation = useNavigate();
const location = useLocation();
console.log({ provinces }); console.log({ provinces });
useEffect(() => { useEffect(() => {
setHeaderOptions(headerOptions); setHeaderOptions(headerOptions);

@ -77,10 +77,12 @@ export const Desktop = ({ setHeaderOptions }) => {
<button <button
className="absolute left-0 top-0 p-3 bg-grayF4 rounded-xl z-20" className="absolute left-0 top-0 p-3 bg-grayF4 rounded-xl z-20"
onClick={() => 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> </button>
{phases[phase]} {phases[phase]}
</div> </div>

@ -25,10 +25,6 @@ const ProfileAddress = ({
userId, userId,
userAddressId, userAddressId,
getFactorInfo, getFactorInfo,
loading,
closeBottomSheet,
mobile,
isMobile,
isDark, isDark,
headerOptions, headerOptions,
setHeaderOptions, setHeaderOptions,
@ -141,13 +137,13 @@ const Location = ({
> >
<Link <Link
to={"/editAddress/" + address.id} 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()} onClick={() => setMenu()}
> >
ویرایش ویرایش
</Link> </Link>
<button <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)} onClick={() => delAddress(address.id)}
> >
حذف حذف

Loading…
Cancel
Save