diff --git a/studio/src/components/dashboard/NewFeaturesPopup.tsx b/studio/src/components/dashboard/NewFeaturesPopup.tsx index 6142a4d38a..1097ee461d 100644 --- a/studio/src/components/dashboard/NewFeaturesPopup.tsx +++ b/studio/src/components/dashboard/NewFeaturesPopup.tsx @@ -8,7 +8,9 @@ import { useNewFeaturesPopupDisabled } from "@/hooks/use-new-features-popup-disa export default function NewFeaturesPopup() { const [isPopupDisabled, setDisablePopup] = useNewFeaturesPopupDisabled(); - const handleClosePopup = () => { + const handleClosePopup = (e: React.MouseEvent) => { + e.preventDefault(); + e.stopPropagation(); setDisablePopup("true"); }; @@ -18,14 +20,34 @@ export default function NewFeaturesPopup() { } return ( -
-
-
+ + +
+
+
+
+

- Cosmo Connect -
- is here! + Discover Hub: Built for schema design & governance

- A new way to unify your -
- API ecosystem + A smarter way to design schemas, collaborate, and govern changes — + all in one place.

- - Learn more + + Explore Hub - +
-
+ ); } diff --git a/studio/src/hooks/use-new-features-popup-disabled.ts b/studio/src/hooks/use-new-features-popup-disabled.ts index a0fcd47519..eed09bd4b6 100644 --- a/studio/src/hooks/use-new-features-popup-disabled.ts +++ b/studio/src/hooks/use-new-features-popup-disabled.ts @@ -4,7 +4,7 @@ import { useLocalStorage } from "./use-local-storage"; export function useNewFeaturesPopupDisabled(): [boolean, Dispatch>] { const [isPopupDisabled, setIsPopupDisabled] = useState(true); const [isPopupDisabledOnClient, setDisablePopup] = useLocalStorage( - "dismissNewFeaturesPopup", + "dismissHubFeaturesPopup", "false", );