diff --git a/.build.hash b/.build.hash index df5c75a..d179af5 100644 --- a/.build.hash +++ b/.build.hash @@ -1 +1 @@ -7c4503634c1566a112e17705d07e15f792647175-372bcf506971f56c4911b429b9f5de5bc37ed008-e9eccd451b778829eb2f2c9752c670b707e1268b +f60aaeaf5d529bc05bbbd41815d65d86e9010dfc-372bcf506971f56c4911b429b9f5de5bc37ed008-e9eccd451b778829eb2f2c9752c670b707e1268b diff --git a/src/App.js b/src/App.js index 9b3c3dd..056d600 100644 --- a/src/App.js +++ b/src/App.js @@ -72,6 +72,10 @@ function App() { const [retireProps, setRetireProps] = useState(null); const [supportOpen, setSupportOpen] = useState(false); const [loggingOut, setLoggingOut] = useState(false); + // Mobile nav + const [mobileNavOpen, setMobileNavOpen] = useState(false); + const [mobileSection, setMobileSection] = useState(null); // 'planning' | 'preparing' | 'enhancing' | 'retirement' | 'profile' | null + const toggleMobileSection = (key) => setMobileSection((k) => (k === key ? null : key)); const AUTH_HOME = '/signin-landing'; @@ -79,6 +83,9 @@ function App() { const prevPathRef = React.useRef(location.pathname); useEffect(() => { prevPathRef.current = location.pathname; }, [location.pathname]); +// Close mobile nav on route change +useEffect(() => { setMobileNavOpen(false); }, [location.pathname]); + const IN_OB = (p) => p.startsWith('/premium-onboarding'); /* ------------------------------------------ @@ -323,7 +330,7 @@ const cancelLogout = () => { // ==================================== if (isLoading) { return ( -
Loading...