ship post follow follow suggestions (#9251)
This commit is contained in:
@@ -8,7 +8,6 @@ export type Gate =
|
|||||||
| 'old_postonboarding'
|
| 'old_postonboarding'
|
||||||
| 'onboarding_add_video_feed'
|
| 'onboarding_add_video_feed'
|
||||||
| 'onboarding_suggested_starterpacks'
|
| 'onboarding_suggested_starterpacks'
|
||||||
| 'post_follow_profile_suggested_accounts'
|
|
||||||
| 'remove_show_latest_button'
|
| 'remove_show_latest_button'
|
||||||
| 'test_gate_1'
|
| 'test_gate_1'
|
||||||
| 'test_gate_2'
|
| 'test_gate_2'
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import {AccordionAnimation} from '#/lib/custom-animations/AccordionAnimation'
|
import {AccordionAnimation} from '#/lib/custom-animations/AccordionAnimation'
|
||||||
import {useGate} from '#/lib/statsig/statsig'
|
|
||||||
import {isAndroid} from '#/platform/detection'
|
import {isAndroid} from '#/platform/detection'
|
||||||
import {useSuggestedFollowsByActorQuery} from '#/state/queries/suggested-follows'
|
import {useSuggestedFollowsByActorQuery} from '#/state/queries/suggested-follows'
|
||||||
import {ProfileGrid} from '#/components/FeedInterstitials'
|
import {ProfileGrid} from '#/components/FeedInterstitials'
|
||||||
@@ -27,7 +26,6 @@ export function AnimatedProfileHeaderSuggestedFollows({
|
|||||||
isExpanded: boolean
|
isExpanded: boolean
|
||||||
actorDid: string
|
actorDid: string
|
||||||
}) {
|
}) {
|
||||||
const gate = useGate()
|
|
||||||
const {isLoading, data, error} = useSuggestedFollowsByActorQuery({
|
const {isLoading, data, error} = useSuggestedFollowsByActorQuery({
|
||||||
did: actorDid,
|
did: actorDid,
|
||||||
})
|
})
|
||||||
@@ -41,8 +39,6 @@ export function AnimatedProfileHeaderSuggestedFollows({
|
|||||||
**/
|
**/
|
||||||
if (isAndroid) return null
|
if (isAndroid) return null
|
||||||
|
|
||||||
if (!gate('post_follow_profile_suggested_accounts')) return null
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<AccordionAnimation isExpanded={isExpanded}>
|
<AccordionAnimation isExpanded={isExpanded}>
|
||||||
<ProfileGrid
|
<ProfileGrid
|
||||||
|
|||||||
Reference in New Issue
Block a user