From 04cfd06639687012b59b52756015324cc622613b Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 2 Jul 2024 21:43:54 -0500 Subject: [PATCH] [D1X] Integrate interstitials (#4698) * Use discriminated union * Integrate interstitials * Add gates and handling for variants * Only show interstitials for logged in accounts since flags are based on user ID * Nit --------- Co-authored-by: Dan Abramov --- src/components/FeedInterstitials.tsx | 8 +- src/lib/statsig/gates.ts | 2 + src/view/com/posts/Feed.tsx | 223 +++++++++++++++++++++++---- 3 files changed, 198 insertions(+), 35 deletions(-) diff --git a/src/components/FeedInterstitials.tsx b/src/components/FeedInterstitials.tsx index f1c4876a..00342b39 100644 --- a/src/components/FeedInterstitials.tsx +++ b/src/components/FeedInterstitials.tsx @@ -203,7 +203,7 @@ export function SuggestedFollows() { {content}