[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 <dan.abramov@gmail.com>
This commit is contained in:
Eric Bailey 2024-07-02 21:43:54 -05:00 committed by GitHub
parent 0598fc2faa
commit 04cfd06639
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 198 additions and 35 deletions

View file

@ -203,7 +203,7 @@ export function SuggestedFollows() {
{content}
<Button
label={_(msg`Browse more accounts on our explore page`)}
label={_(msg`Browse more accounts on the Explore page`)}
onPress={() => {
navigation.navigate('SearchTab')
}}>
@ -211,7 +211,7 @@ export function SuggestedFollows() {
<View style={[a.flex_1, a.justify_center]}>
<View style={[a.flex_row, a.px_lg]}>
<Text style={[a.pr_xl, a.flex_1, a.leading_snug]}>
<Trans>Browse more suggestions on our explore page</Trans>
<Trans>Browse more suggestions on the Explore page</Trans>
</Text>
<Arrow size="xl" />
@ -329,7 +329,7 @@ export function SuggestedFeeds() {
{content}
<Button
label={_(msg`Browse more feeds on our explore page`)}
label={_(msg`Browse more feeds on the Explore page`)}
onPress={() => {
navigation.navigate('SearchTab')
}}
@ -338,7 +338,7 @@ export function SuggestedFeeds() {
<View style={[a.flex_1, a.justify_center]}>
<View style={[a.flex_row, a.px_lg]}>
<Text style={[a.pr_xl, a.flex_1, a.leading_snug]}>
<Trans>Browse more suggestions on our explore page</Trans>
<Trans>Browse more suggestions on the Explore page</Trans>
</Text>
<Arrow size="xl" />