Skip to content

Commit

Permalink
Fix openMF#1744 - Toggle button text between 'Add Payment Detail' and…
Browse files Browse the repository at this point in the history
… 'Hide Payment Detail'
  • Loading branch information
TanishMoral11 committed Dec 17, 2024
1 parent c9854d2 commit 7c899ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,12 @@ internal fun PaymentsDetailsScreen(
showAdditionalDetails = !showAdditionalDetails
},
) {
Text(text = stringResource(id = R.string.feature_collection_sheet_add_payment_detail))
Text(
text = if(showAdditionalDetails)
stringResource(id = R.string.feature_collection_sheet_hide_payment_detail)
else
stringResource(id = R.string.feature_collection_sheet_add_payment_detail)
)
}

if (noPaymentVisibility) {
Expand Down
1 change: 1 addition & 0 deletions feature/collectionSheet/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<string name="feature_collection_sheet_total_charges">Total Charges</string>
<string name="feature_collection_sheet_total_due">Total due</string>
<string name="feature_collection_sheet_add_payment_detail">Add Payment Detail</string>
<string name="feature_collection_sheet_hide_payment_detail">Hide Payment Detail</string>
<string name="feature_collection_sheet_account_number">Account Number</string>
<string name="feature_collection_sheet_cheque_number">Cheque Number</string>
<string name="feature_collection_sheet_routing_code">Routing Code</string>
Expand Down

0 comments on commit 7c899ea

Please sign in to comment.