Skip to content

Commit fe2983f

Browse files
committed
feat(feature:send-money): implement payment details screen
1 parent 7e0cafa commit fe2983f

File tree

7 files changed

+886
-3
lines changed

7 files changed

+886
-3
lines changed

cmp-shared/src/commonMain/kotlin/org/mifospay/shared/navigation/MifosNavHost.kt

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,15 @@ import org.mifospay.feature.send.money.navigation.SEND_MONEY_BASE_ROUTE
7878
import org.mifospay.feature.send.money.navigation.SEND_MONEY_OPTIONS_ROUTE
7979
import org.mifospay.feature.send.money.navigation.navigateToPayeeDetailsScreen
8080
import org.mifospay.feature.send.money.navigation.navigateToPaymentChatHistoryScreen
81+
import org.mifospay.feature.send.money.navigation.navigateToPaymentDetailsScreen
8182
import org.mifospay.feature.send.money.navigation.navigateToPaymentProcessingScreen
8283
import org.mifospay.feature.send.money.navigation.navigateToPaymentSuccessScreen
8384
import org.mifospay.feature.send.money.navigation.navigateToSendMoneyOptionsScreen
8485
import org.mifospay.feature.send.money.navigation.navigateToSendMoneyScreen
8586
import org.mifospay.feature.send.money.navigation.navigateToUpiPinScreen
8687
import org.mifospay.feature.send.money.navigation.payeeDetailsScreen
8788
import org.mifospay.feature.send.money.navigation.paymentChatHistoryScreen
89+
import org.mifospay.feature.send.money.navigation.paymentDetailsScreen
8890
import org.mifospay.feature.send.money.navigation.paymentProcessingScreen
8991
import org.mifospay.feature.send.money.navigation.paymentSuccessScreen
9092
import org.mifospay.feature.send.money.navigation.sendMoneyOptionsScreen
@@ -344,8 +346,17 @@ internal fun MifosNavHost(
344346
navController.navigateToSendMoneyOptionsScreen()
345347
},
346348
onTransactionClick = { transactionId ->
347-
// TODO: Navigate to transaction details screen
348-
println("Transaction clicked: $transactionId")
349+
navController.navigateToPaymentDetailsScreen(transactionId)
350+
},
351+
)
352+
353+
paymentDetailsScreen(
354+
onBackClick = navController::popBackStack,
355+
onPayAgainClick = {
356+
navController.navigateToSendMoneyOptionsScreen()
357+
},
358+
onRetryClick = {
359+
navController.popBackStack()
349360
},
350361
)
351362

feature/send-money/src/commonMain/kotlin/org/mifospay/feature/send/money/PaymentChatHistoryScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ private fun PaymentCard(
314314
}
315315

316316
Icon(
317-
imageVector = MifosIcons.ArrowForward,
317+
imageVector = MifosIcons.ChevronRight,
318318
contentDescription = "View Details",
319319
tint = KptTheme.colorScheme.onSurfaceVariant,
320320
modifier = Modifier.size(20.dp),

0 commit comments

Comments
 (0)