NTP-34487 | Sidharth Bamba | code changes for payment description (#14838)
This commit is contained in:
@@ -616,7 +616,6 @@ fun SharedTransitionScope.RenderPostPaymentScreenV2(
|
||||
PaymentStatusDescription(
|
||||
billEntity = billEntity,
|
||||
naviBbpsDefaultConfig = naviBbpsDefaultConfig,
|
||||
isArcProtected = isArcProtected,
|
||||
)
|
||||
|
||||
if (isArcProtected) {
|
||||
@@ -1484,45 +1483,6 @@ private fun CrossSellFallbackSection(
|
||||
private fun PaymentStatusDescription(
|
||||
billEntity: MyBillEntity,
|
||||
naviBbpsDefaultConfig: NaviBbpsDefaultConfig,
|
||||
isArcProtected: Boolean,
|
||||
) {
|
||||
if (isArcProtected) {
|
||||
ArcProtectedPaymentStatus(
|
||||
billEntity = billEntity,
|
||||
naviBbpsDefaultConfig = naviBbpsDefaultConfig,
|
||||
)
|
||||
} else {
|
||||
NonArcProtectedPaymentStatus(billEntity = billEntity)
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun NonArcProtectedPaymentStatus(billEntity: MyBillEntity) {
|
||||
Row(
|
||||
modifier = Modifier.fillMaxWidth().background(NaviBbpsColor.bgAlt2).padding(16.dp),
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
) {
|
||||
Image(
|
||||
painter = painterResource(id = CommonR.drawable.ic_purple_exclamation),
|
||||
contentDescription = EMPTY,
|
||||
modifier = Modifier.size(16.dp),
|
||||
)
|
||||
Spacer(modifier = Modifier.width(12.dp))
|
||||
|
||||
NaviText(
|
||||
text = getNonArcProtectedMessage(billEntity.categoryId),
|
||||
color = NaviBbpsColor.textPrimary,
|
||||
fontSize = 14.sp,
|
||||
fontFamily = naviFontFamily,
|
||||
fontWeight = getFontWeight(FontWeightEnum.NAVI_BODY_REGULAR),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun ArcProtectedPaymentStatus(
|
||||
billEntity: MyBillEntity,
|
||||
naviBbpsDefaultConfig: NaviBbpsDefaultConfig,
|
||||
) {
|
||||
Row(
|
||||
modifier =
|
||||
@@ -1546,15 +1506,6 @@ private fun ArcProtectedPaymentStatus(
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun getNonArcProtectedMessage(categoryId: String): String {
|
||||
return if (NaviBbpsCommonUtils.isRechargeCategory(categoryId)) {
|
||||
stringResource(id = R.string.bbps_recharge_pending_message)
|
||||
} else {
|
||||
stringResource(id = R.string.bbps_bill_payment_pending_message)
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun CoinDiscountBanner(availableCoinsDiscount: String?) {
|
||||
Column(modifier = Modifier.fillMaxWidth().padding(horizontal = 16.dp)) {
|
||||
|
||||
Reference in New Issue
Block a user