Fix onClick invocation for chip

pull/151/head
Caren Chang 2 years ago
parent 1d63104cc1
commit c9264b3561

@ -119,13 +119,13 @@ fun NiaFilterChip(
@OptIn(ExperimentalMaterial3Api::class) @OptIn(ExperimentalMaterial3Api::class)
fun NiaTopicChip( fun NiaTopicChip(
enabled: Boolean, enabled: Boolean,
onClick: (Boolean) -> Unit, onClick: () -> Unit,
modifier: Modifier = Modifier, modifier: Modifier = Modifier,
label: @Composable () -> Unit label: @Composable () -> Unit
) { ) {
SuggestionChip( SuggestionChip(
enabled = enabled, enabled = enabled,
onClick = { onClick }, onClick = onClick,
label = { label = {
ProvideTextStyle(value = MaterialTheme.typography.labelMedium) { ProvideTextStyle(value = MaterialTheme.typography.labelMedium) {
label() label()

Loading…
Cancel
Save