From 04e4420837905088107182c85107f039ba93a105 Mon Sep 17 00:00:00 2001 From: mahdi Date: Sun, 19 Jun 2022 12:48:38 +0430 Subject: [PATCH] update edit.svg and src/views/DeliveryForm/Address/index.js --- src/assets/icons/edit.svg | 6 ++--- src/views/DeliveryForm/Address/index.js | 35 ++++++++++++++++++------- 2 files changed, 28 insertions(+), 13 deletions(-) diff --git a/src/assets/icons/edit.svg b/src/assets/icons/edit.svg index 9af8cb1..9697c20 100644 --- a/src/assets/icons/edit.svg +++ b/src/assets/icons/edit.svg @@ -1,9 +1,9 @@ - - - + + + diff --git a/src/views/DeliveryForm/Address/index.js b/src/views/DeliveryForm/Address/index.js index 869b909..2618500 100644 --- a/src/views/DeliveryForm/Address/index.js +++ b/src/views/DeliveryForm/Address/index.js @@ -6,6 +6,9 @@ import { userFactor } from "../../../redux/actions"; import Radio from "../../../components/Radio"; import Loading from "../../../components/Loading"; +import editButton from "../../../assets/icons/edit.svg"; +import trash from "../../../assets/icons/trash.svg"; + function Address({ addresses, isDark, @@ -52,7 +55,7 @@ function Address({ className={`flex flex-row justify-between border border-solid items-center w-full px-3 py-6 rounded-md mt-4 transition-all duration-500 gap-10 border-opacity-30 dark:bg-opacity-5 ${ userAddressId === address?.id ? "bg-blueC0 bg-opacity-5 border-blueC0" - : "bg-grayF9 border-gray45" + : "bg-[#F9F9F9] border-gray-400" }`} onClick={() => userAddressId === address?.id @@ -60,7 +63,7 @@ function Address({ : update({ userAddressId: address.id, userId }) } > -
+
{loading && userAddressId !== address?.id ? ( ) : ( @@ -76,7 +79,7 @@ function Address({
-
+
  • نام تحویل گیرنده: {address.firstName + " " + address.lastName}
  • @@ -84,13 +87,21 @@ function Address({ شماره تماس: {address.cellphone}
    -
    - - +
    +
    + + delete-address +
    +
    + + edit-address +
    ); @@ -167,3 +178,7 @@ const mapDispatchToProps = { }; export default connect(mapStateToProps, mapDispatchToProps)(Address); + +Address.defaultProps = { + edit: "src/assets/icons/eidt.svg", +};