Skip to content

Commit

Permalink
Rm unused
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Nov 14, 2023
1 parent 54b1c30 commit 2015155
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/view/com/profile/FollowButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ export function FollowButton({
unfollowedType = 'inverted',
followedType = 'default',
profile,
onToggleFollow,
labelStyle,
}: {
unfollowedType?: ButtonType
followedType?: ButtonType
profile: Shadow<AppBskyActorDefs.ProfileViewBasic>
onToggleFollow?: (v: boolean) => void
labelStyle?: StyleProp<TextStyle>
}) {
const followMutation = useProfileFollowMutation()
Expand All @@ -31,7 +29,6 @@ export function FollowButton({
}
try {
await followMutation.mutateAsync({did: profile.did})
onToggleFollow?.(false)
} catch (e: any) {
Toast.show(`An issue occurred, please try again.`)
}
Expand All @@ -46,7 +43,6 @@ export function FollowButton({
did: profile.did,
followUri: profile.viewer?.following,
})
onToggleFollow?.(true)
} catch (e: any) {
Toast.show(`An issue occurred, please try again.`)
}
Expand Down

0 comments on commit 2015155

Please sign in to comment.