Skip to content

Commit

Permalink
[QA-1330] Fix mobile track edit button (#8644)
Browse files Browse the repository at this point in the history
  • Loading branch information
sliptype authored May 29, 2024
1 parent 6928e3e commit 1513ca0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ export const TrackScreenDetailsTile = ({
)
}

const handlePressEdit = useCallback(() => {
navigation?.push('EditTrack', { id: trackId })
}, [navigation, trackId])

const playbackPositionInfo = useSelector((state) =>
getTrackPosition(state, { trackId, userId: currentUserId })
)
Expand Down Expand Up @@ -320,6 +324,7 @@ export const TrackScreenDetailsTile = ({
isPreviewing={isPreviewing}
isUnlisted={is_unlisted}
isDeleted={is_delete}
onPressEdit={handlePressEdit}
onPressFavorites={handlePressFavorites}
onPressOverflow={handlePressOverflow}
onPressPlay={handlePressPlay}
Expand Down

0 comments on commit 1513ca0

Please sign in to comment.