We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b091d1e commit 772a847Copy full SHA for 772a847
1 file changed
app/src/main/java/com/getcode/view/main/home/components/PaymentConfirmation.kt
@@ -115,15 +115,12 @@ internal fun PaymentConfirmation(
115
label = "show/hide cancel button"
116
) { show ->
117
if (show) {
118
- TextButton(
119
- shape = RoundedCornerShape(percent = 50),
120
- onClick = { onCancel() }) {
121
- Text(
122
- text = stringResource(id = android.R.string.cancel),
123
- style = CodeTheme.typography.caption,
124
- color = White50
125
- )
126
- }
+ CodeButton(
+ modifier = Modifier.fillMaxWidth(),
+ buttonState = ButtonState.Subtle,
+ onClick = onCancel,
+ text = stringResource(id = android.R.string.cancel),
+ )
127
} else {
128
Spacer(modifier = Modifier.minimumInteractiveComponentSize())
129
}
0 commit comments