From 5b4d7fa175a24cf8c52744982933a7543a4f821e Mon Sep 17 00:00:00 2001 From: vineyardbovines Date: Mon, 1 Jun 2026 11:49:12 -0400 Subject: [PATCH] Hide drawer invite-friends button on web The invite-friends share sheet is native-only (InviteFriendsDialog is a web no-op), so the drawer share button did nothing on web. Only pass onPressShare on native so the button is not rendered on web. --- src/view/shell/Drawer.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/view/shell/Drawer.tsx b/src/view/shell/Drawer.tsx index bdd69d9e9a..918195cf0c 100644 --- a/src/view/shell/Drawer.tsx +++ b/src/view/shell/Drawer.tsx @@ -65,7 +65,7 @@ import {InlineLinkText} from '#/components/Link' import {ProfileBadges} from '#/components/ProfileBadges' import {Text} from '#/components/Typography' import {useAnalytics} from '#/analytics' -import {IS_WEB} from '#/env' +import {IS_NATIVE, IS_WEB} from '#/env' import {InviteFriendsDialog} from '#/features/inviteFriends' import {useActorStatus} from '#/features/liveNow' @@ -327,9 +327,9 @@ let DrawerContent = ({}: React.PropsWithoutRef<{}>): React.ReactNode => { { - inviteFriendsControl.open() - }} + onPressShare={ + IS_NATIVE ? () => inviteFriendsControl.open() : undefined + } /> ) : (