NTP-28494 | PS | arc design and sendmoney arc api fixes (#14761)

This commit is contained in:
Prakhar Saxena
2025-01-30 16:42:50 +05:30
committed by GitHub
parent 47095abad7
commit 468da5005b
4 changed files with 13 additions and 18 deletions

View File

@@ -93,7 +93,7 @@ fun MPSOnboardedView(
onArcNudgeClicked = onArcNudgeClicked,
)
BottomSheetTopGradientBox(modifier = Modifier.align(Alignment.TopStart))
BottomSheetTopGradientBox(modifier = Modifier.align(Alignment.TopStart), height = 20.dp)
BottomSheetBottomGradientBox(modifier = Modifier.align(Alignment.BottomStart))
}

View File

@@ -329,25 +329,17 @@ fun MPSScreen(
bottomSheetStateHolder.showBottomSheet &&
mpsViewModel.isDismissAllowed
) {
if (
bottomSheetStateHolder.bottomSheetUIState
is MPSScreenUtils.MPSScreenType.ArcNudgeInfo
) {
mpsViewModel.onArcNudgeBottomSheetCloseClicked()
bottomSheetState.show()
} else {
val paymentCancelSource =
when (bottomSheetStateHolder.bottomSheetUIState) {
is MPSScreenUtils.MPSScreenType.Feedback ->
PaymentCancelSource.FEEDBACK_OTHERS
val paymentCancelSource =
when (bottomSheetStateHolder.bottomSheetUIState) {
is MPSScreenUtils.MPSScreenType.Feedback ->
PaymentCancelSource.FEEDBACK_OTHERS
is MPSScreenUtils.MPSScreenType.Error ->
PaymentCancelSource.ERROR_OTHERS
is MPSScreenUtils.MPSScreenType.Error ->
PaymentCancelSource.ERROR_OTHERS
else -> PaymentCancelSource.OTHERS
}
finishCallback(paymentCancelSource)
}
else -> PaymentCancelSource.OTHERS
}
finishCallback(paymentCancelSource)
}
}
}

View File

@@ -296,6 +296,8 @@ constructor(
onInitialChecksFailure(errorConfig)
return
}
naviUpiTransactionInfo.selectedBankAccount?.isArcProtected =
naviUpiTransactionInfo.isArcProtected
sendMoneyUseCase.executeSendMoney(
payeeEntity = naviUpiTransactionInfo.payeeEntity,
selectedBankAccount = naviUpiTransactionInfo.selectedBankAccount!!,

View File

@@ -985,6 +985,7 @@ constructor(
localArcTransactionCounterFormatted =
arcNudgeBottomSheetData?.localArcTransactionCounterFormatted.orEmpty(),
),
bottomSheetStateChange = false,
)
}
}