Skip to content

Commit

Permalink
fix: Remove PersonsTable (#20775)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite authored Mar 18, 2024
1 parent 69b2bec commit cbe5d3c
Show file tree
Hide file tree
Showing 7 changed files with 178 additions and 347 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
371 changes: 168 additions & 203 deletions frontend/src/scenes/early-access-features/EarlyAccessFeature.tsx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions frontend/src/scenes/early-access-features/InstructionsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import { preflightLogic } from 'scenes/PreflightCheck/preflightLogic'
import { FeatureFlagType } from '~/types'

interface InstructionsModalProps {
featureFlag: FeatureFlagType
flag: FeatureFlagType['key']
visible: boolean
onClose: () => void
}

export function InstructionsModal({ onClose, visible, featureFlag }: InstructionsModalProps): JSX.Element {
export function InstructionsModal({ onClose, visible, flag }: InstructionsModalProps): JSX.Element {
const { preflight } = useValues(preflightLogic)

const getCloudPanels = (): JSX.Element => (
Expand All @@ -38,12 +38,12 @@ export function InstructionsModal({ onClose, visible, featureFlag }: Instruction
<div>
<b>Opt user in</b>
<div>
<FeatureEnrollInstructions featureFlag={featureFlag} />
<FeatureEnrollInstructions flag={flag} />
</div>

<b>Opt user out</b>
<div>
<FeatureUnenrollInstructions featureFlag={featureFlag} />
<FeatureUnenrollInstructions flag={flag} />
</div>

<b>Retrieve Previews</b>
Expand All @@ -61,12 +61,12 @@ export function InstructionsModal({ onClose, visible, featureFlag }: Instruction
<div>
<b>Opt user in</b>
<div>
<FeatureEnrollInstructions featureFlag={featureFlag} />
<FeatureEnrollInstructions flag={flag} />
</div>

<b>Opt user out</b>
<div>
<FeatureUnenrollInstructions featureFlag={featureFlag} />
<FeatureUnenrollInstructions flag={flag} />
</div>

<b>Retrieve Previews</b>
Expand All @@ -91,19 +91,19 @@ export function InstructionsModal({ onClose, visible, featureFlag }: Instruction
)
}

function FeatureEnrollInstructions({ featureFlag }: { featureFlag: FeatureFlagType }): JSX.Element {
function FeatureEnrollInstructions({ flag }: { flag: string }): JSX.Element {
return (
<CodeSnippet language={Language.JavaScript} wrap>
{`posthog.updateEarlyAccessFeatureEnrollment("${featureFlag.key}", true)
{`posthog.updateEarlyAccessFeatureEnrollment("${flag}", true)
`}
</CodeSnippet>
)
}

function FeatureUnenrollInstructions({ featureFlag }: { featureFlag: FeatureFlagType }): JSX.Element {
function FeatureUnenrollInstructions({ flag }: { flag: string }): JSX.Element {
return (
<CodeSnippet language={Language.JavaScript} wrap>
{`posthog.updateEarlyAccessFeatureEnrollment("${featureFlag.key}", false)
{`posthog.updateEarlyAccessFeatureEnrollment("${flag}", false)
`}
</CodeSnippet>
)
Expand Down
134 changes: 0 additions & 134 deletions frontend/src/scenes/persons/PersonsTable.tsx

This file was deleted.

0 comments on commit cbe5d3c

Please sign in to comment.