Skip to content

Commit

Permalink
feature/#33: PresonalCupSelection click 기능 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
kangyein9892 committed Nov 26, 2024
1 parent 80a24a0 commit e709a2e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ import org.techtown.twosomeheart.ui.theme.White

@Composable
fun PersonalCupSelection(
modifier: Modifier = Modifier
modifier: Modifier = Modifier,
onClick: (Boolean) -> Unit
) {
val isPersonalCup = remember { mutableStateOf(false) }

Expand All @@ -47,6 +48,7 @@ fun PersonalCupSelection(
tint = Color.Unspecified,
modifier = Modifier.noRippleClickable {
isPersonalCup.value = !isPersonalCup.value
onClick(isPersonalCup.value)
}
)

Expand Down Expand Up @@ -96,5 +98,7 @@ fun PersonalCupSelection(
@Preview
@Composable
fun PresonalCupSelection() {
PersonalCupSelection()
PersonalCupSelection(
onClick = {}
)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package org.techtown.twosomeheart.presentation.detail.modal.component

import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier

@Composable
fun PersonalOptionSelection(
modifier: Modifier = Modifier
) {

}

0 comments on commit e709a2e

Please sign in to comment.