|
|
|
@ -1,6 +1,6 @@ |
|
|
|
|
import React, { useState, useEffect } from "react"; |
|
|
|
|
import { connect } from "react-redux"; |
|
|
|
|
import { useNavigate } from "react-router-dom"; |
|
|
|
|
import { useNavigate, useLocation } from "react-router-dom"; |
|
|
|
|
import { publicApi, userAddress, dialog, user } from "../../redux/actions"; |
|
|
|
|
import onInput from "../../utils/onInput"; |
|
|
|
|
import location from "../../utils/location"; |
|
|
|
@ -44,8 +44,10 @@ export const Address = ({ |
|
|
|
|
const [addressFields, setAddressFields] = useState({}); |
|
|
|
|
const [mapAddress, setMapAddress] = useState(null); |
|
|
|
|
const navigation = useNavigate(); |
|
|
|
|
const location = useLocation(); |
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
setHeaderOptions(headerOptions); |
|
|
|
|
if (province.length <= 1) { |
|
|
|
|
getProvince(); |
|
|
|
|
} |
|
|
|
@ -288,7 +290,9 @@ export const Address = ({ |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<div |
|
|
|
|
className="flex flex-col lg:flex-row-reverse px-4 flex-1 lg:pt-0 pb-20 gap-5 lg:divide-x lg:divide-solid lg:divide-gray-200" |
|
|
|
|
className={`flex flex-col lg:flex-row-reverse px-4 flex-1 lg:pt-0 pb-20 gap-5 lg:divide-x lg:divide-solid lg:divide-gray-200 ${ |
|
|
|
|
location.state.panel ? "mt-24" : "pt-0" |
|
|
|
|
}`}
|
|
|
|
|
// style={{ minHeight: "calc(100vh - 500px)" }}
|
|
|
|
|
> |
|
|
|
|
{!profilePage && ( |
|
|
|
|