Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
♻️ :: delete dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Tmdhoon2 committed Nov 17, 2023
1 parent e8f87fe commit 702828d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ internal fun Feed(
SignalDialog(
title = stringResource(id = R.string.feed_delete_dialog_title),
onCancelBtnClick = { showDialog = false },
onCheckBtnClick = {},
onCheckBtnClick = {
showDialog = false
feedViewModel.deletePost()
},
)
}
}
Expand Down Expand Up @@ -125,7 +128,7 @@ internal fun Feed(
},
expanded = expanded,
onDismissRequest = { expanded = -1 },
onDelete = feedViewModel::deletePost,
onDelete = { showDialog = true },
onEdit = { moveToCreatePost(state.feedId) },
)

Expand Down

0 comments on commit 702828d

Please sign in to comment.