Skip to content

Commit

Permalink
chore: slim down experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
mbifulco committed Sep 28, 2024
1 parent 2d1f85f commit 5a5fdbd
Showing 1 changed file with 1 addition and 35 deletions.
36 changes: 1 addition & 35 deletions src/components/NewsletterSignup/index.tsx
Original file line number Diff line number Diff line change
@@ -1,43 +1,9 @@
import React from 'react';
import { PostHogFeature } from 'posthog-js/react';

import Detailed from './NewsletterBannerDetailed';
import Fancy from './NewsletterBannerFancy';
import Simple from './NewsletterBannerSimple';

const NEWSLETTER_EXPERIMENT_NAME = 'newsletter-banner-treatments';
const NewsletterExperiementVariants = {
Control: 'control',
Simple: 'simple',
Hero: 'hero',
} as const;

export const NewsletterSignup: React.FC = () => {
return (
<>
<PostHogFeature
flag={NEWSLETTER_EXPERIMENT_NAME}
match={NewsletterExperiementVariants.Control}
fallback={null}
>
<Fancy />
</PostHogFeature>
<PostHogFeature
flag={NEWSLETTER_EXPERIMENT_NAME}
match={NewsletterExperiementVariants.Simple}
fallback={null}
>
<Simple />
</PostHogFeature>
<PostHogFeature
flag={NEWSLETTER_EXPERIMENT_NAME}
match={NewsletterExperiementVariants.Hero}
fallback={null}
>
<Detailed />
</PostHogFeature>
</>
);
return <Fancy />;
};

export default NewsletterSignup;

0 comments on commit 5a5fdbd

Please sign in to comment.