Skip to content

Commit 772a847

Browse files
committed
chore(micropayments/confirm): use CodeButton for cancel
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent b091d1e commit 772a847

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

app/src/main/java/com/getcode/view/main/home/components/PaymentConfirmation.kt

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,12 @@ internal fun PaymentConfirmation(
115115
label = "show/hide cancel button"
116116
) { show ->
117117
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-
}
118+
CodeButton(
119+
modifier = Modifier.fillMaxWidth(),
120+
buttonState = ButtonState.Subtle,
121+
onClick = onCancel,
122+
text = stringResource(id = android.R.string.cancel),
123+
)
127124
} else {
128125
Spacer(modifier = Modifier.minimumInteractiveComponentSize())
129126
}

0 commit comments

Comments
 (0)