Remember bookmark value -> doesn't fix anything

Change-Id: Ia58d93394638d1792f269213bf8a44bb5d74c102
caren/onboarding_prevent_scroll_on_action
Caren 2 years ago
parent 0b32858d45
commit d2e028947e

@ -155,8 +155,11 @@ fun BookmarkButton(
onClick: () -> Unit,
modifier: Modifier = Modifier
) {
val bookmarkChecked = remember { mutableStateOf(isBookmarked) }
NiaToggleButton(
checked = isBookmarked,
checked = bookmarkChecked.value,
onCheckedChange = { onClick() },
modifier = modifier,
icon = {

Loading…
Cancel
Save