update src/views/Dashboard/layouts/Main/Addresses/index.js

temp
mahdi 2 years ago
parent df6354d51d
commit 329fe15001
  1. 8
      src/views/Dashboard/layouts/Main/Addresses/index.js

@ -30,7 +30,7 @@ const ProfileAddress = ({
}, []); }, []);
return ( 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`}> <div className={`p-0 m-0 flex flex-col mb-4`}>
{addresses.map((address, index) => ( {addresses.map((address, index) => (
<Location <Location
@ -43,11 +43,11 @@ const ProfileAddress = ({
/> />
))} ))}
</div> </div>
{/* <FloatingButton <FloatingButton
action={() => navigation("/createAddress", { state: { panel: true } })} action={() => navigation("/createAddress", { state: { panel: true } })}
// action={() => {}} // action={() => {}}
position={{ right: isMobile ? "" : 350, bottom: 50 }} position={{ right: isMobile ? "" : 350, bottom: 50 }}
/> */} />
</div> </div>
); );
}; };
@ -55,7 +55,7 @@ const ProfileAddress = ({
const Location = ({ address, active, userId, isDark, update }) => { const Location = ({ address, active, userId, isDark, update }) => {
return ( return (
<div <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 active
? "border-gray-300 bg-blueC0 bg-opacity-5" ? "border-gray-300 bg-blueC0 bg-opacity-5"
: "border-green-400 bg-white" : "border-green-400 bg-white"

Loading…
Cancel
Save