diff --git a/src/router.js b/src/router.js index 11fdab6..29f85ff 100644 --- a/src/router.js +++ b/src/router.js @@ -503,7 +503,7 @@ function Router({ isDark, isMobile, headerOptions, dialog, menu, setMenu }) { back: true, shown: true, menu: false, - bookmark : 'contentId' + bookmark: "contentId", }} /> } diff --git a/src/views/Address/index.js b/src/views/Address/index.js index 148dec5..2215152 100644 --- a/src/views/Address/index.js +++ b/src/views/Address/index.js @@ -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 (