Browse Source

feat(insights): set full page to false on module upsell when rendered in body (#80197)

See https://github.com/getsentry/getsentry/pull/15605 for details
Dominik Buszowiecki 4 months ago
parent
commit
5ff6df1b93

+ 1 - 0
static/app/types/hooks.tsx

@@ -666,6 +666,7 @@ type SidebarNavigationItemHook = () => React.ComponentType<{
 type InsightsUpsellHook = {
   children: React.ReactNode;
   moduleName: TitleableModuleNames;
+  fullPage?: boolean;
 };
 
 /**

+ 1 - 1
static/app/views/insights/common/components/moduleUpsellHookWrapper.tsx

@@ -21,7 +21,7 @@ export function ModuleBodyUpsellHook({
 
   if (shouldDisplayUpsell) {
     return (
-      <UpsellPageHook moduleName={moduleName}>
+      <UpsellPageHook moduleName={moduleName} fullPage={false}>
         <Feature
           features={MODULE_FEATURE_MAP[moduleName]}
           organization={organization}