fixed delete button at address component | 30

temp
mahdi 3 years ago
parent 3bb37b64b4
commit 5b816674d4
  1. 7
      src/views/Dashboard/layouts/Main/Addresses/index.js

@ -29,6 +29,9 @@ const ProfileAddress = ({
setPhase, setPhase,
isMobile, isMobile,
isDark, isDark,
setMenu,
setDialog,
deleteAddress,
}) => { }) => {
const navigation = useNavigate(); const navigation = useNavigate();
@ -68,6 +71,9 @@ const ProfileAddress = ({
active={userAddressId === address?.id} active={userAddressId === address?.id}
isDark={isDark} isDark={isDark}
update={update} update={update}
setMenu={setMenu}
setDialog={setDialog}
deleteAddress={deleteAddress}
/> />
))} ))}
</div> </div>
@ -87,7 +93,6 @@ const Location = ({
userAddressId, userAddressId,
loading, loading,
menu, menu,
isMobile,
}) => { }) => {
const [locationMenu, setLocationMenu] = React.useState(false); const [locationMenu, setLocationMenu] = React.useState(false);

Loading…
Cancel
Save