|
|
|
@ -58,7 +58,11 @@ export const Address = ({ |
|
|
|
|
if (editPage || profilePage) { |
|
|
|
|
setHeaderOptions(headerOptions); |
|
|
|
|
} else { |
|
|
|
|
setHeaderOptions({ shown: true, back: true, title: "آدرس جدید" }); |
|
|
|
|
setHeaderOptions({ |
|
|
|
|
shown: true, |
|
|
|
|
back: true, |
|
|
|
|
title: "آدرس", |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (editPage) { |
|
|
|
@ -293,7 +297,7 @@ export const Address = ({ |
|
|
|
|
<div |
|
|
|
|
className={`flex flex-col lg:flex-row-reverse px-4 flex-1 lg:pt-0 pb-20 gap-5 lg:divide-x lg:divide-solid lg:divide-gray-200 ${ |
|
|
|
|
location?.state?.panel ? "mt-2" : "pt-0" |
|
|
|
|
}`}
|
|
|
|
|
} `}
|
|
|
|
|
// style={{ minHeight: "calc(100vh - 500px)" }}
|
|
|
|
|
> |
|
|
|
|
{!profilePage && ( |
|
|
|
@ -365,24 +369,24 @@ export const Address = ({ |
|
|
|
|
className={`flex flex-row items-center mb-7 cursor-pointer
|
|
|
|
|
`}
|
|
|
|
|
onClick={() => { |
|
|
|
|
setActiveCheckbox(false); |
|
|
|
|
setActiveCheckbox(true); |
|
|
|
|
}} |
|
|
|
|
> |
|
|
|
|
<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 ${ |
|
|
|
|
activeCheckbox === false ? "bg-blueC0" : "" |
|
|
|
|
activeCheckbox === true ? "bg-blueC0" : "" |
|
|
|
|
}`}
|
|
|
|
|
></div> |
|
|
|
|
</div> |
|
|
|
|
<p className="font-bold text-sm ">برای خودم</p> |
|
|
|
|
<p className="font-bold text-sm">برای خودم</p> |
|
|
|
|
</div> |
|
|
|
|
{/* someone else */} |
|
|
|
|
<div |
|
|
|
|
className={`flex flex-row items-center mb-7 cursor-pointer
|
|
|
|
|
`}
|
|
|
|
|
onClick={() => { |
|
|
|
|
setActiveCheckbox(true); |
|
|
|
|
setActiveCheckbox(false); |
|
|
|
|
}} |
|
|
|
|
// onClick={() => {
|
|
|
|
|
// setActiveCheckbox(!activeCheckbox);
|
|
|
|
@ -391,9 +395,9 @@ export const Address = ({ |
|
|
|
|
<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 ${ |
|
|
|
|
activeCheckbox === !false ? "bg-blueC0" : "" |
|
|
|
|
activeCheckbox === false ? "bg-blueC0" : "" |
|
|
|
|
}`}
|
|
|
|
|
></div>{" "} |
|
|
|
|
></div> |
|
|
|
|
</div> |
|
|
|
|
<p className="font-bold text-sm ">گیرنده فرد دیگری است</p> |
|
|
|
|
</div> |
|
|
|
|