From 14ee6dbee0fe4c30c6d5da15cfd6ffd8de1875c5 Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 24 Feb 2025 00:26:11 -0800 Subject: [PATCH] temporarily comment out hub intro --- gui/src/components/Layout.tsx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/gui/src/components/Layout.tsx b/gui/src/components/Layout.tsx index 07c052675..a10fc7b6e 100644 --- a/gui/src/components/Layout.tsx +++ b/gui/src/components/Layout.tsx @@ -19,7 +19,6 @@ import { exitEditMode } from "../redux/thunks"; import { loadLastSession, saveCurrentSession } from "../redux/thunks/session"; import { getFontSize, isMetaEquivalentKeyPressed } from "../util"; import { incrementFreeTrialCount } from "../util/freeTrial"; -import { getLocalStorage, setLocalStorage } from "../util/localStorage"; import { ROUTES } from "../util/navigation"; import TextDialog from "./dialogs"; import Footer from "./Footer"; @@ -247,18 +246,19 @@ const Layout = () => { }, [location]); const useHub = useAppSelector(selectUseHub); + // Existing users that have already seen the onboarding card // should be shown an intro card for hub.continue.dev - useEffect(() => { - if (useHub !== true) { - return; - } - const seenHubIntro = getLocalStorage("seenHubIntro"); - if (!onboardingCard.show && !seenHubIntro) { - onboardingCard.setActiveTab("ExistingUserHubIntro"); - } - setLocalStorage("seenHubIntro", true); - }, [onboardingCard.show, useHub]); + // useEffect(() => { + // if (useHub !== true) { + // return; + // } + // const seenHubIntro = getLocalStorage("seenHubIntro"); + // if (!onboardingCard.show && !seenHubIntro) { + // onboardingCard.setActiveTab("ExistingUserHubIntro"); + // } + // setLocalStorage("seenHubIntro", true); + // }, [onboardingCard.show, useHub]); return (