We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2006e46 commit 47e63a3Copy full SHA for 47e63a3
app/src/main/java/to/bitkit/ui/components/ActivityBanner.kt
@@ -46,7 +46,7 @@ fun ActivityBanner(
46
gradientColor: Color,
47
title: String,
48
@DrawableRes icon: Int,
49
- onClick: () -> Unit,
+ onClick: (() -> Unit)? = null,
50
) {
51
52
val infiniteTransition = rememberInfiniteTransition(label = "glow")
@@ -102,7 +102,7 @@ fun ActivityBanner(
102
glowRadius = 12.dp,
103
cornerRadius = 16.dp
104
)
105
- .clickableAlpha { onClick() }
+ .clickableAlpha(onClick = onClick)
106
107
// Main card content with clipped backgrounds
108
Box(
0 commit comments