Use new action_delete and action_delete_account
This commit is contained in:
parent
f51c961883
commit
9d054e08b1
6 changed files with 10 additions and 8 deletions
|
|
@ -135,7 +135,7 @@ private fun ColumnScope.Buttons(
|
|||
) {
|
||||
val logoutAction = state.accountDeactivationAction
|
||||
Button(
|
||||
text = stringResource(CommonStrings.action_deactivate),
|
||||
text = stringResource(CommonStrings.action_delete),
|
||||
showProgress = logoutAction is AsyncAction.Loading,
|
||||
destructive = true,
|
||||
enabled = state.submitEnabled,
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ fun AccountDeactivationConfirmationDialog(
|
|||
ConfirmationDialog(
|
||||
title = stringResource(id = R.string.screen_deactivate_account_title),
|
||||
content = stringResource(R.string.screen_deactivate_account_confirmation_dialog_content),
|
||||
submitText = stringResource(id = CommonStrings.action_deactivate),
|
||||
submitText = stringResource(id = CommonStrings.action_delete),
|
||||
onSubmitClick = onSubmitClick,
|
||||
onDismiss = onDismiss,
|
||||
destructiveSubmit = true,
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ class AccountDeactivationViewTest {
|
|||
eventSink = eventsRecorder,
|
||||
),
|
||||
)
|
||||
rule.clickOn(CommonStrings.action_deactivate)
|
||||
rule.clickOn(CommonStrings.action_delete)
|
||||
eventsRecorder.assertSingle(AccountDeactivationEvents.DeactivateAccount(false))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue