feat: broaden H1 + Google login on pricing + lifetime urgency #4753
1 changed file+8−6
Modifiedlanding/src/App.tsx+8−6View fileUnifiedSplit
@@ -75,6 +75,14 @@ export default function App() {
7575 return () => window.removeEventListener("popstate", onPop);
7676 }, []);
7777
78 // Redirect unauthenticated /dashboard visits to home — must be before any early returns
79 useEffect(() => {
80 if (path === "/dashboard" && !user) {
81 setPath("/");
82 window.history.replaceState({}, "", "/");
83 }
84 }, [path, user]);
85
7886 if (path === "/privacy") {
7987 return <LegalPage type="privacy" />;
8088 }
@@ -91,12 +99,6 @@ export default function App() {
9199 if (path === "/dashboard" && user) {
92100 return <Dashboard user={user} accessToken={getStoredToken()} onSignOut={handleSignOut} />;
93101 }
94 useEffect(() => {
95 if (path === "/dashboard" && !user) {
96 setPath("/");
97 window.history.replaceState({}, "", "/");
98 }
99 }, [path, user]);
100102
101103 return (
102104 <div className="min-h-screen bg-[#09090b]">
103105
c comment · e edit title · m merge · a approve · r request changes · ? shortcuts