Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1744 - Toggle button text between 'Add Payment Detail' and 'Hide… #2269

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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