Skip to content

Commit

Permalink
fix: désactiver le swipe sur l'EventItem lorsque le multi select est …
Browse files Browse the repository at this point in the history
…actif (#169)

Signed-off-by: fc-santos <[email protected]>
  • Loading branch information
fc-santos authored Dec 4, 2024
1 parent 88fe552 commit 91a12bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/components/EventItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@ const EventItem = ({
</TouchableOpacity>
)
}
return (
return activateSelection ? (
<>{body}</>
) : (
<Swipeable
ref={swipeableRef}
onSwipeableWillOpen={handleSwipeOpen}
Expand Down

0 comments on commit 91a12bf

Please sign in to comment.