|
|
@ -8,16 +8,17 @@ import { |
|
|
|
menu, |
|
|
|
menu, |
|
|
|
} from "../../../../../redux/actions"; |
|
|
|
} from "../../../../../redux/actions"; |
|
|
|
|
|
|
|
|
|
|
|
import Loading from "../../../../../components/Loading"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//components
|
|
|
|
//components
|
|
|
|
import Button from "../../../../../components/Button"; |
|
|
|
import Button from "../../../../../components/Button"; |
|
|
|
import { Link, useNavigate } from "react-router-dom"; |
|
|
|
import { Link, useNavigate } from "react-router-dom"; |
|
|
|
import editButton from "../../../../../assets/icons/edit.svg"; |
|
|
|
import Loading from "../../../../../components/Loading"; |
|
|
|
import trash from "../../../../../assets/icons/trash.svg"; |
|
|
|
|
|
|
|
import Empty from "../../../../../components/Empty"; |
|
|
|
import Empty from "../../../../../components/Empty"; |
|
|
|
import FloatingButton from "../../../../../components/FloatingButton"; |
|
|
|
import FloatingButton from "../../../../../components/FloatingButton"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//assets
|
|
|
|
|
|
|
|
import editButton from "../../../../../assets/icons/edit.svg"; |
|
|
|
|
|
|
|
import trash from "../../../../../assets/icons/trash.svg"; |
|
|
|
|
|
|
|
|
|
|
|
const ProfileAddress = ({ |
|
|
|
const ProfileAddress = ({ |
|
|
|
addresses, |
|
|
|
addresses, |
|
|
|
update, |
|
|
|
update, |
|
|
@ -32,6 +33,7 @@ const ProfileAddress = ({ |
|
|
|
setMenu, |
|
|
|
setMenu, |
|
|
|
setDialog, |
|
|
|
setDialog, |
|
|
|
deleteAddress, |
|
|
|
deleteAddress, |
|
|
|
|
|
|
|
isDashboard |
|
|
|
}) => { |
|
|
|
}) => { |
|
|
|
const navigation = useNavigate(); |
|
|
|
const navigation = useNavigate(); |
|
|
|
|
|
|
|
|
|
|
@ -221,7 +223,7 @@ const mapStateToProps = (state) => ({ |
|
|
|
userId: state.user.status?.id, |
|
|
|
userId: state.user.status?.id, |
|
|
|
userAddressId: state.userFactor.info?.userAddressId, |
|
|
|
userAddressId: state.userFactor.info?.userAddressId, |
|
|
|
addresses: state.userAddress.list, |
|
|
|
addresses: state.userAddress.list, |
|
|
|
isMobile: state.publicApi.isMobile, |
|
|
|
isMobile: state.config.device === 'mobile', |
|
|
|
isDark: state.publicApi.isDark, |
|
|
|
isDark: state.publicApi.isDark, |
|
|
|
loading: state.userFactor.loading, |
|
|
|
loading: state.userFactor.loading, |
|
|
|
}); |
|
|
|
}); |
|
|
|