diff --git a/src/screens/PostThread/components/ThreadItemAnchor.tsx b/src/screens/PostThread/components/ThreadItemAnchor.tsx index 6db47c8308..5ef7c5954d 100644 --- a/src/screens/PostThread/components/ThreadItemAnchor.tsx +++ b/src/screens/PostThread/components/ThreadItemAnchor.tsx @@ -381,11 +381,12 @@ const ThreadItemAnchorInner = memo(function ThreadItemAnchorInner({ - {showFollowButton && ( - - - - )} + + + diff --git a/src/screens/PostThread/components/ThreadItemAnchorFollowButton.tsx b/src/screens/PostThread/components/ThreadItemAnchorFollowButton.tsx index 3c925a1cf3..d2133e3735 100644 --- a/src/screens/PostThread/components/ThreadItemAnchorFollowButton.tsx +++ b/src/screens/PostThread/components/ThreadItemAnchorFollowButton.tsx @@ -19,24 +19,36 @@ import {PlusLarge_Stroke2_Corner0_Rounded as PlusIcon} from '#/components/icons/ import {IS_IOS} from '#/env' import {GrowthHack} from './GrowthHack' -export function ThreadItemAnchorFollowButton({did}: {did: string}) { +export function ThreadItemAnchorFollowButton({ + did, + enabled = true, +}: { + did: string + enabled?: boolean +}) { if (IS_IOS) { return ( - + ) } - return + return } -export function ThreadItemAnchorFollowButtonInner({did}: {did: string}) { +export function ThreadItemAnchorFollowButtonInner({ + did, + enabled = true, +}: { + did: string + enabled?: boolean +}) { const {data: profile, isLoading} = useProfileQuery({did}) // We will never hit this - the profile will always be cached or loaded above // but it keeps the typechecker happy - if (isLoading || !profile) return null + if (!enabled || isLoading || !profile) return null return }