@@ -82,6 +82,7 @@ import com.getcode.view.main.home.components.BillManagementOptions
8282import com.getcode.view.main.home.components.HomeBill
8383import com.getcode.view.main.home.components.PaymentConfirmation
8484import com.getcode.view.main.home.components.PermissionsBlockingView
85+ import com.getcode.view.main.home.components.ReceivedKinConfirmation
8586import kotlinx.coroutines.delay
8687import kotlinx.coroutines.flow.filterIsInstance
8788import kotlinx.coroutines.flow.launchIn
@@ -480,46 +481,10 @@ private fun BillContainer(
480481 Box (
481482 contentAlignment = BottomCenter
482483 ) {
483- Column (
484- modifier = Modifier
485- .clip(
486- CodeTheme .shapes.medium.copy(
487- bottomStart = ZeroCornerSize ,
488- bottomEnd = ZeroCornerSize
489- )
490- )
491- .background(Brand )
492- .padding(
493- horizontal = CodeTheme .dimens.inset,
494- vertical = CodeTheme .dimens.grid.x3
495- )
496- .windowInsetsPadding(WindowInsets .navigationBars),
497- horizontalAlignment = CenterHorizontally
498- ) {
499- Text (
500- modifier = Modifier .padding(top = CodeTheme .dimens.grid.x3),
501- style = CodeTheme .typography.subtitle1.copy(
502- fontWeight = FontWeight .Bold
503- ),
504- text = stringResource(id = R .string.subtitle_youReceived)
505- )
506-
507- Row {
508- val bill = updatedState.billState.bill as Bill .Cash
509- AmountArea (
510- amountText = bill.amount.formatted(),
511- currencyResId = bill.amount.rate.currency.flagResId,
512- isClickable = false
513- )
514-
515- }
516- CodeButton (
517- modifier = Modifier .fillMaxWidth(),
518- onClick = { homeViewModel.cancelSend() },
519- buttonState = ButtonState .Filled ,
520- text = stringResource(id = R .string.action_putInWallet)
521- )
522- }
484+ ReceivedKinConfirmation (
485+ bill = updatedState.billState.bill as Bill .Cash ,
486+ onClaim = { homeViewModel.cancelSend() }
487+ )
523488 }
524489 }
525490 }
0 commit comments