Skip to content

Commit

Permalink
update: apply ktlint formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kang9366 committed Nov 23, 2023
1 parent c01e4f9 commit 840759e
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,13 @@ internal fun DetailScreen(
},
bottomBar = {
detail?.isBookmark
?.let { BottomButton(
isBookmark = it,
onSaveClick = { viewModel.postBookmark(postId) },
onDeleteClick = { viewModel.deleteBookmark(postId) },
onClick = onCertificationClick)
?.let {
BottomButton(
isBookmark = it,
onSaveClick = { viewModel.postBookmark(postId) },
onDeleteClick = { viewModel.deleteBookmark(postId) },
onClick = onCertificationClick
)
}
}
) {
Expand Down Expand Up @@ -130,7 +132,7 @@ fun BookmarkButton(
setImageResource(if (isActive) R.drawable.ic_bookmark_filled else R.drawable.ic_bookmark)
setBorderColor(if (isActive) PetOrange else Gray5)
Log.d("testsss", isActive.toString())
if(isActive) {
if (isActive) {
onSaveClick()
} else {
onDeleteClick()
Expand Down

0 comments on commit 840759e

Please sign in to comment.