From cde8be1aa65c54b921f021247b9ed0349f2fd2b4 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Mon, 25 Aug 2025 19:06:10 -0500 Subject: [PATCH] Move PostThreadFollowBtn to new home --- src/screens/PostThread/components/ThreadItemAnchor.tsx | 4 ++-- .../PostThread/components/ThreadItemAnchorFollowButton.tsx} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/{view/com/post-thread/PostThreadFollowBtn.tsx => screens/PostThread/components/ThreadItemAnchorFollowButton.tsx} (98%) diff --git a/src/screens/PostThread/components/ThreadItemAnchor.tsx b/src/screens/PostThread/components/ThreadItemAnchor.tsx index fc1f1caeb6..550bddc6a6 100644 --- a/src/screens/PostThread/components/ThreadItemAnchor.tsx +++ b/src/screens/PostThread/components/ThreadItemAnchor.tsx @@ -32,9 +32,9 @@ import {useSession} from '#/state/session' import {type OnPostSuccessData} from '#/state/shell/composer' import {useMergedThreadgateHiddenReplies} from '#/state/threadgate-hidden-replies' import {type PostSource} from '#/state/unstable-post-source' -import {PostThreadFollowBtn} from '#/view/com/post-thread/PostThreadFollowBtn' import {formatCount} from '#/view/com/util/numeric/format' import {PreviewableUserAvatar} from '#/view/com/util/UserAvatar' +import {ThreadItemAnchorFollowButton} from '#/screens/PostThread/components/ThreadItemAnchorFollowButton' import { LINEAR_AVI_WIDTH, OUTER_SPACE, @@ -367,7 +367,7 @@ const ThreadItemAnchorInner = memo(function ThreadItemAnchorInner({ {showFollowButton && ( - + )} diff --git a/src/view/com/post-thread/PostThreadFollowBtn.tsx b/src/screens/PostThread/components/ThreadItemAnchorFollowButton.tsx similarity index 98% rename from src/view/com/post-thread/PostThreadFollowBtn.tsx rename to src/screens/PostThread/components/ThreadItemAnchorFollowButton.tsx index fc9296cad5..d4cf120cf8 100644 --- a/src/view/com/post-thread/PostThreadFollowBtn.tsx +++ b/src/screens/PostThread/components/ThreadItemAnchorFollowButton.tsx @@ -17,7 +17,7 @@ import {Button, ButtonIcon, ButtonText} from '#/components/Button' import {Check_Stroke2_Corner0_Rounded as Check} from '#/components/icons/Check' import {PlusLarge_Stroke2_Corner0_Rounded as Plus} from '#/components/icons/Plus' -export function PostThreadFollowBtn({did}: {did: string}) { +export function ThreadItemAnchorFollowButton({did}: {did: string}) { const {data: profile, isLoading} = useProfileQuery({did}) // We will never hit this - the profile will always be cached or loaded above