Skip to content

Commit

Permalink
fix: Site app url for early access (#24104)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite authored Jul 31, 2024
1 parent c6037ed commit 89789af
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions frontend/src/scenes/early-access-features/InstructionsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import { useValues } from 'kea'
import { CodeSnippet, Language } from 'lib/components/CodeSnippet'
import EarlyAccessFeatureImage from 'public/early-access-feature-demo.png'
import { preflightLogic } from 'scenes/PreflightCheck/preflightLogic'
import { urls } from 'scenes/urls'

import { FeatureFlagType } from '~/types'
import { FeatureFlagType, PipelineStage, Region } from '~/types'

interface InstructionsModalProps {
flag: FeatureFlagType['key']
Expand All @@ -25,7 +26,15 @@ export function InstructionsModal({ onClose, visible, flag }: InstructionsModalP
header: 'Option 1: Widget Site App',
content: (
<div>
Give your users a <Link to="https://app.posthog.com/project/apps/574">prebuilt widget</Link>{' '}
Give your users a{' '}
<Link
to={urls.pipelineNodeNew(
PipelineStage.SiteApp,
preflight?.region === Region.EU ? 332 : 574
)}
>
prebuilt widget
</Link>{' '}
to opt-in to features
<img className="max-h-full max-w-full mt-2.5" src={EarlyAccessFeatureImage} />
</div>
Expand Down

0 comments on commit 89789af

Please sign in to comment.