update src/views/Dashboard/layouts/Main/Addresses/index.js and src/views/Dashboard/layouts/Mobile/ProfileAddress/index.js

temp
mahdi andalib 2 years ago
parent c3240e3c67
commit 6d49649e14
  1. 18
      src/views/Dashboard/layouts/Main/Addresses/index.js

@ -1,5 +1,6 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { import {
userAddress, userAddress,
userFactor, userFactor,
@ -14,6 +15,8 @@ import Button from "../../../../../components/Button";
import { Link, useNavigate } from "react-router-dom"; import { Link, useNavigate } from "react-router-dom";
import editButton from "../../../../../assets/icons/edit.svg"; import editButton from "../../../../../assets/icons/edit.svg";
import trash from "../../../../../assets/icons/trash.svg"; import trash from "../../../../../assets/icons/trash.svg";
import Empty from "../../../../../components/Empty";
import FloatingButton from "../../../../../components/FloatingButton";
const ProfileAddress = ({ const ProfileAddress = ({
addresses, addresses,
@ -83,6 +86,8 @@ const Location = ({
deleteAddress, deleteAddress,
userAddressId, userAddressId,
loading, loading,
menu,
isMobile,
}) => { }) => {
const [locationMenu, setLocationMenu] = React.useState(false); const [locationMenu, setLocationMenu] = React.useState(false);
@ -165,18 +170,19 @@ const Location = ({
{/* edit / delete button */} {/* edit / delete button */}
<div className="flex flex-col items-center gap-y-2"> <div className="flex flex-col items-center gap-y-2">
<div <div
style={{ border: "solid 1px #fca5a5" }} style={{ border: "solid 1px #12CF7F" }}
class="w-full flex flex-row items-center justify-between px-2 py-1 rounded-sm cursor-pointer" class="w-full flex flex-row items-center justify-between px-2 py-1 rounded-sm cursor-pointer"
> >
<button class="text-sm">حذف</button> <button class="text-sm">ویرایش</button>
<img src={trash} alt="delete-address" className="w-5 mr-3" /> <img src={editButton} alt="edit-address" className="w-5 mr-3 " />
</div> </div>
<div <div
style={{ border: "solid 1px #12CF7F" }} style={{ border: "solid 1px #fca5a5" }}
class="w-full flex flex-row items-center justify-between px-2 py-1 rounded-sm cursor-pointer" class="w-full flex flex-row items-center justify-between px-2 py-1 rounded-sm cursor-pointer"
onClick={() => delAddress(address.id)}
> >
<button class="text-sm">ویرایش</button> <button class="text-sm">حذف</button>
<img src={editButton} alt="edit-address" className="w-5 mr-3 " /> <img src={trash} alt="delete-address" className="w-5 mr-3" />
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save