@@ -42,7 +42,7 @@ import mifos_mobile.feature.loan_application.generated.resources.feature_apply_l
42
42
import mifos_mobile.feature.loan_application.generated.resources.feature_apply_loan_label_loan_product
43
43
import mifos_mobile.feature.loan_application.generated.resources.feature_apply_loan_label_principal_amount
44
44
import mifos_mobile.feature.loan_application.generated.resources.feature_apply_loan_label_purpose
45
- import mifos_mobile.feature.loan_application.generated.resources.feature_apply_loan_title
45
+ import mifos_mobile.feature.loan_application.generated.resources.feature_apply_loan_section_fill_details
46
46
import org.jetbrains.compose.resources.stringResource
47
47
import org.koin.compose.viewmodel.koinViewModel
48
48
import org.mifos.mobile.core.common.DateHelper
@@ -77,9 +77,9 @@ internal fun LoanApplyScreen(
77
77
78
78
is LoanApplicationEvent .NavigateToConfirmDetailsScreen -> {
79
79
navigateToConfirmDetailsScreen(
80
- state.selectedLoanProductId ,
80
+ state.loanProductId.toLong() ,
81
81
state.applicantName,
82
- state.selectedLoanProduct ,
82
+ state.loanProductName ,
83
83
state.selectedLoanPurpose,
84
84
state.disbursementDate,
85
85
state.principalAmount,
@@ -117,7 +117,7 @@ internal fun LoanAccountDialog(
117
117
visibilityState = BasicDialogState .Shown (
118
118
message = stringResource(dialogState.message),
119
119
),
120
- onDismissRequest = { onAction(LoanApplicationAction .DismissDialog ) },
120
+ onDismissRequest = { onAction(LoanApplicationAction .ConfirmNavigation ) },
121
121
)
122
122
}
123
123
@@ -186,7 +186,7 @@ internal fun LoanAccountDialog(
186
186
187
187
is LoanApplicationDialogState .Network -> {
188
188
MifosErrorComponent (
189
- isNetworkConnected = ! state.networkUnavailable ,
189
+ isNetworkConnected = state.networkStatus ,
190
190
isRetryEnabled = true ,
191
191
onRetry = { onAction(LoanApplicationAction .Retry ) },
192
192
)
@@ -204,7 +204,7 @@ internal fun LoanAccountContent(
204
204
) {
205
205
MifosElevatedScaffold (
206
206
onNavigateBack = { onAction(LoanApplicationAction .OnNavigateBack ) },
207
- topBarTitle = stringResource(Res .string.feature_apply_loan_title ),
207
+ topBarTitle = stringResource(Res .string.feature_apply_loan_section_fill_details ),
208
208
bottomBar = {
209
209
Surface {
210
210
MifosPoweredCard (
@@ -235,11 +235,10 @@ internal fun LoanAccountContent(
235
235
)
236
236
237
237
MifosOutlineDropdown (
238
- selectedText = state.selectedLoanProduct,
239
- items = state.productOptionsMap,
240
- onItemSelected = { id, product ->
241
- onAction(LoanApplicationAction .LoanProductChange (id, product))
242
- },
238
+ selectedText = state.loanProductName,
239
+ items = emptyMap(),
240
+ enabled = false ,
241
+ onItemSelected = { _, _ -> },
243
242
label = stringResource(Res .string.feature_apply_loan_label_loan_product),
244
243
)
245
244
@@ -249,7 +248,6 @@ internal fun LoanAccountContent(
249
248
onItemSelected = { id, product ->
250
249
onAction(LoanApplicationAction .PurposeOfLoanChange (product))
251
250
},
252
- enabled = state.selectedLoanProduct != " " ,
253
251
label = stringResource(Res .string.feature_apply_loan_label_purpose),
254
252
)
255
253
0 commit comments