From c9264b35610ad923c05ff228764bdf5e234216cc Mon Sep 17 00:00:00 2001 From: Caren Chang Date: Thu, 23 Jun 2022 17:58:04 -0700 Subject: [PATCH] Fix onClick invocation for chip --- .../apps/nowinandroid/core/designsystem/component/Chip.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core-designsystem/src/main/java/com/google/samples/apps/nowinandroid/core/designsystem/component/Chip.kt b/core-designsystem/src/main/java/com/google/samples/apps/nowinandroid/core/designsystem/component/Chip.kt index bef4cfc7b..1df362050 100644 --- a/core-designsystem/src/main/java/com/google/samples/apps/nowinandroid/core/designsystem/component/Chip.kt +++ b/core-designsystem/src/main/java/com/google/samples/apps/nowinandroid/core/designsystem/component/Chip.kt @@ -119,13 +119,13 @@ fun NiaFilterChip( @OptIn(ExperimentalMaterial3Api::class) fun NiaTopicChip( enabled: Boolean, - onClick: (Boolean) -> Unit, + onClick: () -> Unit, modifier: Modifier = Modifier, label: @Composable () -> Unit ) { SuggestionChip( enabled = enabled, - onClick = { onClick }, + onClick = onClick, label = { ProvideTextStyle(value = MaterialTheme.typography.labelMedium) { label()