added radio button | 30

temp
mahdi andalib 2 years ago
parent f56986cc25
commit 1465ee1c99
  1. 2
      src/views/Dashboard/layouts/Main/Addresses/index.js
  2. 29
      src/views/DeliveryForm/Address/index.js

@ -122,7 +122,7 @@ const Location = ({
active ? {} : update({ userAddressId: address.id, userId })
}
>
<div className="w-full flex items-center justify-between ">
<div className="w-full flex items-center justify-between">
<div className="w-4 h-4 flex flex-col items-center justify-center ml-1 bg-gray-200 rounded-full">
<div
className={`w-2 h-2 rounded-full ${

@ -37,7 +37,14 @@ function Address({
{loading && userAddressId !== address?.id ? (
<Loading size={2} color="bg-gray-400" />
) : (
<Radio active={active} />
<div className="w-4 h-4 flex flex-col items-center justify-center ml-1 bg-gray-200 rounded-full">
<div
className={`w-2 h-2 rounded-full ${
active === true ? "bg-blueC0" : ""
}`}
></div>
</div>
// <Radio active={active} />
)}
<div className="flex flex-col flex-1 mr-2">
<li
@ -82,23 +89,31 @@ function Address({
: update({ userAddressId: address.id, userId })
}
>
<div className="flex flex-row flex-1">
<div className="flex flex-1 gap-x-4 ">
{loading && userAddressId !== address?.id ? (
<Loading size={2} color="bg-gray-400" />
) : (
<Radio active={active} />
<div className="">
<div className="w-4 h-4 flex flex-col items-center justify-center bg-gray-200 rounded-full">
<div
className={`w-2 h-2 rounded-full ${
active === true ? "bg-blueC0" : ""
}`}
></div>
</div>
</div>
// <Radio active={active} />
)}
<div className="flex flex-col mr-2">
<div className="flex flex-col gap-y-2">
<li className="text-right text-tiny leading-6 text-blue52 dark:text-white">
آدرس:&nbsp;{address.address}
</li>
<li className="text-right text-tiny leading-6 text-blue52 dark:text-white mt-3">
<li className="text-right text-tiny leading-6 text-blue52 dark:text-white">
کد پستی:&nbsp;{address.postalCode}
</li>
</div>
</div>
<div className="flex flex-col ">
<div className="flex flex-col">
<li className="text-right text-tiny leading-6 text-blue52 dark:text-white">
نام تحویل گیرنده:&nbsp;{address.firstName + " " + address.lastName}
</li>

Loading…
Cancel
Save