Skip to content

Commit

Permalink
fix(web): Trigger NewDashboardOptInWidget only in Novu Cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
SokratisVidros committed Nov 8, 2024
1 parent 26e2185 commit 4e623a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/src/components/nav/RootNavMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { VisibilityButton } from './VisibilityButton';
import { FreeTrialSidebarWidget } from '../layout/components/FreeTrialSidebarWidget';
import { parseUrl } from '../../utils/routeUtils';
import { OrganizationSwitcher } from '../../ee/clerk';
import { IS_EE_AUTH_ENABLED } from '../../config/index';
import { IS_SELF_HOSTED, IS_EE_AUTH_ENABLED } from '../../config/index';
import { useFeatureFlag } from '../../hooks/useFeatureFlag';
import { When } from '../utils/When';
import { SidebarFooter } from '../layout/components/LocalStudioSidebar/SidebarFooter';
Expand Down Expand Up @@ -162,7 +162,7 @@ export const RootNavMenu: React.FC = () => {
{isV2Enabled ? (
<>
<SidebarFooter>
<NewDashboardOptInWidget />
{!IS_SELF_HOSTED && IS_EE_AUTH_ENABLED && <NewDashboardOptInWidget />}
<FreeTrialSidebarWidget />
<OutlineButton fullWidth onClick={navigateToLocalStudio} Icon={IconLaptop}>
Open Local Studio
Expand Down

0 comments on commit 4e623a8

Please sign in to comment.