Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ export const Paper = forwardRef<View, PaperProps>((props, ref) => {
.onFinalize(() => {
pressed.value = withTiming(0, motion.press)
})
.onEnd((e) => {
.onEnd(() => {
'worklet'
// Tap will only fire if maxDeltaX/Y constraints are met (no significant movement)
if (onPress) {
runOnJS(onPress)(e)
runOnJS(onPress)()
}
})
.maxDuration(250)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import type { GestureResponderEvent } from 'react-native'
import type { FlexProps } from '../Flex/types'

export type PaperProps = Omit<BasePaperProps, 'onClick'> & {
onPress?: (e: GestureResponderEvent) => void
onPress?: (e?: GestureResponderEvent) => void
} & FlexProps
1 change: 0 additions & 1 deletion packages/mobile/src/screens/explore-screen/collections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export const PREMIUM_TRACKS: ExploreCollection = {
icon: IconCart
}


export const TRENDING_PLAYLISTS: ExploreCollection = {
title: 'Trending Playlists',
description: 'The top playlists on Audius right now',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export const ExploreContent = () => {
const showTrackContent = category === 'tracks' || category === 'all'
const showPlaylistContent = category === 'playlists' || category === 'all'
const showUserContent = category === 'users' || category === 'all'
const showAlbumContent = category === 'albums' || category === 'all'

return (
<Flex gap='2xl' pt='s' pb={150} ph='l'>
Expand Down
1 change: 0 additions & 1 deletion packages/web/src/pages/search-explore-page/collections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export const PREMIUM_TRACKS: ExploreCollection = {
link: SEARCH_PREMIUM_TRACKS
}


export const TRENDING_PLAYLISTS: ExploreCollection = {
title: 'Trending Playlists',
subtitle: 'The top playlists on Audius right now',
Expand Down