File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
app/src/main/java/to/bitkit/ui/components Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ import androidx.compose.ui.text.style.TextOverflow
3030import androidx.compose.ui.tooling.preview.Preview
3131import androidx.compose.ui.unit.Dp
3232import androidx.compose.ui.unit.dp
33+ import to.bitkit.ui.shared.modifiers.clickableAlpha
3334import to.bitkit.ui.shared.util.primaryButtonStyle
3435import to.bitkit.ui.theme.AppButtonDefaults
3536import to.bitkit.ui.theme.AppThemeSurface
@@ -66,7 +67,7 @@ fun PrimaryButton(
6667 val buttonShape = MaterialTheme .shapes.large
6768
6869 Button (
69- onClick = onClick ,
70+ onClick = {} ,
7071 enabled = enabled && ! isLoading,
7172 colors = AppButtonDefaults .primaryColors.copy(
7273 containerColor = Color .Transparent ,
@@ -82,6 +83,7 @@ fun PrimaryButton(
8283 shape = buttonShape,
8384 primaryColor = color
8485 )
86+ .clickableAlpha { onClick() }
8587 .then(modifier)
8688 ) {
8789 if (isLoading) {
You can’t perform that action at this time.
0 commit comments