diff --git a/src/view/com/post-thread/PostLikedBy.tsx b/src/view/com/post-thread/PostLikedBy.tsx index 3ab9a279b1..dc090e7ad1 100644 --- a/src/view/com/post-thread/PostLikedBy.tsx +++ b/src/view/com/post-thread/PostLikedBy.tsx @@ -78,6 +78,8 @@ export const PostLikedBy = observer(function ({uri}: {uri: string}) { )} extraData={view.isLoading} + // @ts-ignore our .web version only -prf + desktopFixedHeight /> ) }) diff --git a/src/view/com/post-thread/PostRepostedBy.tsx b/src/view/com/post-thread/PostRepostedBy.tsx index 9874460e99..65579ae23f 100644 --- a/src/view/com/post-thread/PostRepostedBy.tsx +++ b/src/view/com/post-thread/PostRepostedBy.tsx @@ -89,6 +89,8 @@ export const PostRepostedBy = observer(function PostRepostedBy({ )} extraData={view.isLoading} + // @ts-ignore our .web version only -prf + desktopFixedHeight /> ) }) diff --git a/src/view/com/profile/ProfileFollowers.tsx b/src/view/com/profile/ProfileFollowers.tsx index db592075ac..cba1719253 100644 --- a/src/view/com/profile/ProfileFollowers.tsx +++ b/src/view/com/profile/ProfileFollowers.tsx @@ -92,6 +92,8 @@ export const ProfileFollowers = observer(function ProfileFollowers({ )} extraData={view.isLoading} + // @ts-ignore our .web version only -prf + desktopFixedHeight /> ) }) diff --git a/src/view/com/profile/ProfileFollows.tsx b/src/view/com/profile/ProfileFollows.tsx index 10da79c5e7..dafba62fc4 100644 --- a/src/view/com/profile/ProfileFollows.tsx +++ b/src/view/com/profile/ProfileFollows.tsx @@ -89,6 +89,8 @@ export const ProfileFollows = observer(function ProfileFollows({ )} extraData={view.isLoading} + // @ts-ignore our .web version only -prf + desktopFixedHeight /> ) }) diff --git a/src/view/com/util/forms/Button.tsx b/src/view/com/util/forms/Button.tsx index a634b47a99..8548860d09 100644 --- a/src/view/com/util/forms/Button.tsx +++ b/src/view/com/util/forms/Button.tsx @@ -1,15 +1,20 @@ import React from 'react' import { + GestureResponderEvent, StyleProp, StyleSheet, TextStyle, - TouchableOpacity, + Pressable, ViewStyle, } from 'react-native' import {Text} from '../text/Text' import {useTheme} from 'lib/ThemeContext' import {choose} from 'lib/functions' +type Event = + | React.MouseEvent + | GestureResponderEvent + export type ButtonType = | 'primary' | 'secondary' @@ -114,10 +119,18 @@ export function Button({ }, }, ) + const onPressWrapped = React.useCallback( + (event: Event) => { + event.stopPropagation() + event.preventDefault() + onPress?.() + }, + [onPress], + ) return ( - {label ? ( @@ -126,7 +139,7 @@ export function Button({ ) : ( children )} - + ) } diff --git a/src/view/screens/PostLikedBy.tsx b/src/view/screens/PostLikedBy.tsx index 2e162ef0f9..fb44f1f9be 100644 --- a/src/view/screens/PostLikedBy.tsx +++ b/src/view/screens/PostLikedBy.tsx @@ -22,7 +22,7 @@ export const PostLikedByScreen = withAuthRequired(({route}: Props) => { return ( - + ) diff --git a/src/view/screens/PostRepostedBy.tsx b/src/view/screens/PostRepostedBy.tsx index bfd827f678..19f0af18b5 100644 --- a/src/view/screens/PostRepostedBy.tsx +++ b/src/view/screens/PostRepostedBy.tsx @@ -22,7 +22,7 @@ export const PostRepostedByScreen = withAuthRequired(({route}: Props) => { return ( - + ) diff --git a/src/view/screens/ProfileFollowers.tsx b/src/view/screens/ProfileFollowers.tsx index d782cb696a..e2f95fbe4f 100644 --- a/src/view/screens/ProfileFollowers.tsx +++ b/src/view/screens/ProfileFollowers.tsx @@ -20,7 +20,7 @@ export const ProfileFollowersScreen = withAuthRequired(({route}: Props) => { return ( - + ) diff --git a/src/view/screens/ProfileFollows.tsx b/src/view/screens/ProfileFollows.tsx index 9c15d1d928..f70944f557 100644 --- a/src/view/screens/ProfileFollows.tsx +++ b/src/view/screens/ProfileFollows.tsx @@ -20,7 +20,7 @@ export const ProfileFollowsScreen = withAuthRequired(({route}: Props) => { return ( - + )