Disables delete draft from swipe from right to left. Only left to right remains available.

This commit is contained in:
Vitor Pamplona
2024-12-27 18:25:24 -05:00
parent 1c52887e3a
commit 7fe02fcf2c
2 changed files with 1 additions and 2 deletions
@@ -84,7 +84,6 @@ fun SwipeToDeleteContainer(
) )
} }
@OptIn(ExperimentalMaterial3Api::class)
@Composable @Composable
fun DismissBackground(dismissState: SwipeToDismissBoxState) { fun DismissBackground(dismissState: SwipeToDismissBoxState) {
val color by animateColorAsState( val color by animateColorAsState(
@@ -210,7 +210,7 @@ private fun DraftFeedLoaded(
.fillMaxWidth() .fillMaxWidth()
.animateContentSize(), .animateContentSize(),
onStartToEnd = { accountViewModel.delete(item) }, onStartToEnd = { accountViewModel.delete(item) },
onEndToStart = { accountViewModel.delete(item) }, onEndToStart = { },
) { ) {
NoteCompose( NoteCompose(
item, item,