From c8e1de5097e67889390e49e8a5e025e38d0e573b Mon Sep 17 00:00:00 2001 From: Sasikanth Miriyampalli Date: Mon, 5 Feb 2024 14:14:20 +0530 Subject: [PATCH] Use surface onclick for open source card --- .../dev/sasikanth/rss/reader/settings/ui/SettingsScreen.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/settings/ui/SettingsScreen.kt b/shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/settings/ui/SettingsScreen.kt index c3fa88b63..b6eaf3a38 100644 --- a/shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/settings/ui/SettingsScreen.kt +++ b/shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/settings/ui/SettingsScreen.kt @@ -246,7 +246,8 @@ private fun OpenSource(openLink: () -> Unit) { Surface( color = AppTheme.colorScheme.tintedSurface, shape = MaterialTheme.shapes.extraLarge, - modifier = Modifier.fillMaxWidth().padding(16.dp).clickable { openLink() } + modifier = Modifier.fillMaxWidth().padding(16.dp), + onClick = { openLink() } ) { Column(horizontalAlignment = Alignment.CenterHorizontally, modifier = Modifier.padding(16.dp)) { Icon(