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.
This commit is contained in:
vineyardbovines
2026-06-01 11:49:12 -04:00
parent 11ff9fa3a7
commit 5b4d7fa175
+4 -4
View File
@@ -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 => {
<DrawerProfileCard
account={currentAccount}
onPressProfile={onPressDrawerHeaderProfile}
onPressShare={() => {
inviteFriendsControl.open()
}}
onPressShare={
IS_NATIVE ? () => inviteFriendsControl.open() : undefined
}
/>
) : (
<View style={[a.pr_xl]}>