|
|
|
@ -30,7 +30,7 @@ const ProfileAddress = ({ |
|
|
|
|
}, []); |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<div className={`flex-1 ${isMobile ? "" : "w-1/2"} mx-auto `}> |
|
|
|
|
<div className={`flex-1 ${isMobile ? "" : "w-1/2"} mx-auto`}> |
|
|
|
|
<div className={`p-0 m-0 flex flex-col mb-4`}> |
|
|
|
|
{addresses.map((address, index) => ( |
|
|
|
|
<Location |
|
|
|
@ -43,11 +43,11 @@ const ProfileAddress = ({ |
|
|
|
|
/> |
|
|
|
|
))} |
|
|
|
|
</div> |
|
|
|
|
{/* <FloatingButton |
|
|
|
|
<FloatingButton |
|
|
|
|
action={() => navigation("/createAddress", { state: { panel: true } })} |
|
|
|
|
// action={() => {}}
|
|
|
|
|
position={{ right: isMobile ? "" : 350, bottom: 50 }} |
|
|
|
|
/> */} |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
); |
|
|
|
|
}; |
|
|
|
@ -55,7 +55,7 @@ const ProfileAddress = ({ |
|
|
|
|
const Location = ({ address, active, userId, isDark, update }) => { |
|
|
|
|
return ( |
|
|
|
|
<div |
|
|
|
|
className={`flex items-center w-full px-3 py-4 rounded-md mt-5 border-2 border-solid ${ |
|
|
|
|
className={`flex items-center w-full px-3 py-4 rounded-md mt-2 border-2 border-solid ${ |
|
|
|
|
active |
|
|
|
|
? "border-gray-300 bg-blueC0 bg-opacity-5" |
|
|
|
|
: "border-green-400 bg-white" |
|
|
|
|