Skip to content

Commit

Permalink
feat: Actually use the onSwiped callback to delete a Transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Nov 27, 2024
1 parent 0780b62 commit e51a035
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ fun TransferItemList(
key = { getTransfers()[it].uuid },
contentType = { getTransfers()[it] },
itemContent = {
val transfer = getTransfers()[it]
SwipeToDismissComponent(
contentShape = itemShape,
onSwiped = { /* TODO */ },
onSwiped = { onSwiped(transfer.uuid) },
) {
val transfer = getTransfers()[it]
TransferItem(
transfer = transfer,
shape = itemShape,
Expand Down

0 comments on commit e51a035

Please sign in to comment.