|
|
@ -48,7 +48,6 @@ export const Address = ({ |
|
|
|
const [addressFields, setAddressFields] = useState({}); |
|
|
|
const [addressFields, setAddressFields] = useState({}); |
|
|
|
const [mapAddress, setMapAddress] = useState(null); |
|
|
|
const [mapAddress, setMapAddress] = useState(null); |
|
|
|
const navigation = useNavigate(); |
|
|
|
const navigation = useNavigate(); |
|
|
|
const location = useLocation(); |
|
|
|
|
|
|
|
console.log({ provinces }); |
|
|
|
console.log({ provinces }); |
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
setHeaderOptions(headerOptions); |
|
|
|
setHeaderOptions(headerOptions); |
|
|
@ -66,7 +65,7 @@ export const Address = ({ |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (editPage) { |
|
|
|
if (editPage) { |
|
|
|
getAddress({ id: location.getId() }); |
|
|
|
getAddress({ id: location.getId() }); |
|
|
|
} |
|
|
|
} |
|
|
|