Skip to content

Commit

Permalink
Disables delete draft from swipe from right to left. Only left to rig…
Browse files Browse the repository at this point in the history
…ht remains available.
  • Loading branch information
vitorpamplona committed Dec 27, 2024
1 parent 1c52887 commit 7fe02fc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ fun SwipeToDeleteContainer(
)
}

@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun DismissBackground(dismissState: SwipeToDismissBoxState) {
val color by animateColorAsState(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ private fun DraftFeedLoaded(
.fillMaxWidth()
.animateContentSize(),
onStartToEnd = { accountViewModel.delete(item) },
onEndToStart = { accountViewModel.delete(item) },
onEndToStart = { },
) {
NoteCompose(
item,
Expand Down

0 comments on commit 7fe02fc

Please sign in to comment.