mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Merge pull request #3409 from element-hq/feature/bma/recoveryKeyFormatting
Recovery key formatting and wording iteration
This commit is contained in:
+1
-4
@@ -70,10 +70,7 @@ internal fun RecoveryKeyView(
|
||||
verticalArrangement = Arrangement.spacedBy(8.dp)
|
||||
) {
|
||||
Text(
|
||||
text = when (state.recoveryKeyUserStory) {
|
||||
RecoveryKeyUserStory.Enter -> stringResource(R.string.screen_recovery_key_confirm_key_label)
|
||||
else -> stringResource(id = CommonStrings.common_recovery_key)
|
||||
},
|
||||
text = stringResource(id = CommonStrings.common_recovery_key),
|
||||
modifier = Modifier.padding(start = 16.dp),
|
||||
style = ElementTheme.typography.fontBodyMdRegular,
|
||||
)
|
||||
|
||||
+4
-2
@@ -27,9 +27,11 @@ open class RecoveryKeyViewStateProvider : PreviewParameterProvider<RecoveryKeyVi
|
||||
aRecoveryKeyViewState(recoveryKeyUserStory = it, inProgress = true),
|
||||
aRecoveryKeyViewState(recoveryKeyUserStory = it, formattedRecoveryKey = aFormattedRecoveryKey()),
|
||||
aRecoveryKeyViewState(recoveryKeyUserStory = it, formattedRecoveryKey = aFormattedRecoveryKey(), inProgress = true),
|
||||
// Add other states here
|
||||
)
|
||||
}
|
||||
} + sequenceOf(
|
||||
aRecoveryKeyViewState(recoveryKeyUserStory = RecoveryKeyUserStory.Enter, formattedRecoveryKey = aFormattedRecoveryKey().replace(" ", "")),
|
||||
aRecoveryKeyViewState(recoveryKeyUserStory = RecoveryKeyUserStory.Enter, formattedRecoveryKey = "This is a passphrase with spaces"),
|
||||
)
|
||||
}
|
||||
|
||||
fun aRecoveryKeyViewState(
|
||||
|
||||
Reference in New Issue
Block a user