diff options
author | Eric Bailey <git@esb.lol> | 2024-05-30 23:56:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-31 05:56:09 +0100 |
commit | d614f6cb71bf2751834dbd800b5f43257d5c074a (patch) | |
tree | f33f56f7daf3cb844bd45610eb24bf51326f5ffc /src/view/com/posts/AviFollowButton.tsx | |
parent | 89c9fd3be16ea96182842544d76ce019cb8e1403 (diff) | |
download | voidsky-d614f6cb71bf2751834dbd800b5f43257d5c074a.tar.zst |
Shadows (#4265)
Diffstat (limited to 'src/view/com/posts/AviFollowButton.tsx')
-rw-r--r-- | src/view/com/posts/AviFollowButton.tsx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/view/com/posts/AviFollowButton.tsx b/src/view/com/posts/AviFollowButton.tsx index 9358967e1..db15312a6 100644 --- a/src/view/com/posts/AviFollowButton.tsx +++ b/src/view/com/posts/AviFollowButton.tsx @@ -1,4 +1,4 @@ -import React, {useState} from 'react' +import React from 'react' import {View} from 'react-native' import {AppBskyActorDefs, ModerationDecision} from '@atproto/api' import {msg} from '@lingui/macro' @@ -39,7 +39,6 @@ export function AviFollowButton({ }) const gate = useGate() const {currentAccount, hasSession} = useSession() - const [followed, setFollowed] = useState<string | null>(null) const navigation = useNavigation<NavigationProp>() const name = sanitizeDisplayName( @@ -47,13 +46,10 @@ export function AviFollowButton({ moderation.ui('displayName'), ) const isFollowing = - profile.viewer?.following || - profile.did === followed || - profile.did === currentAccount?.did + profile.viewer?.following || profile.did === currentAccount?.did function onPress() { follow() - setFollowed(profile.did) Toast.show(_(msg`Following ${name}`)) } |