From 2015155f87d84eb4b0e6d8db3e23acce588359e6 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Tue, 14 Nov 2023 23:50:03 +0000 Subject: [PATCH] Rm unused --- src/view/com/profile/FollowButton.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/view/com/profile/FollowButton.tsx b/src/view/com/profile/FollowButton.tsx index 7c018f54fc..032a910c79 100644 --- a/src/view/com/profile/FollowButton.tsx +++ b/src/view/com/profile/FollowButton.tsx @@ -13,13 +13,11 @@ export function FollowButton({ unfollowedType = 'inverted', followedType = 'default', profile, - onToggleFollow, labelStyle, }: { unfollowedType?: ButtonType followedType?: ButtonType profile: Shadow - onToggleFollow?: (v: boolean) => void labelStyle?: StyleProp }) { const followMutation = useProfileFollowMutation() @@ -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.`) } @@ -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.`) }