Update remaining strings for FTUE.

Include homeserver in view models/state as needed.
Pre-fill the user's display name as set by the server.
This commit is contained in:
Doug
2022-07-14 11:41:36 +01:00
committed by Doug
parent 5394ed0f4a
commit d5b5101420
48 changed files with 250 additions and 155 deletions
@@ -62,15 +62,17 @@ struct AuthenticationServerSelectionScreen: View {
OnboardingIconImage(image: Asset.Images.authenticationServerSelectionIcon)
.padding(.bottom, 8)
Text(VectorL10n.authenticationServerSelectionTitle)
Text(viewModel.viewState.headerTitle)
.font(theme.fonts.title2B)
.multilineTextAlignment(.center)
.foregroundColor(theme.colors.primaryContent)
.accessibilityIdentifier("headerTitle")
Text(VectorL10n.authenticationServerSelectionMessage)
Text(viewModel.viewState.headerMessage)
.font(theme.fonts.body)
.multilineTextAlignment(.center)
.foregroundColor(theme.colors.secondaryContent)
.accessibilityIdentifier("headerMessage")
}
}
@@ -85,11 +87,13 @@ struct AuthenticationServerSelectionScreen: View {
textField
}
Text(viewModel.viewState.footerMessage)
.font(theme.fonts.footnote)
.foregroundColor(textFieldFooterColor)
.frame(maxWidth: .infinity, alignment: .leading)
.accessibilityIdentifier("textFieldFooter")
if let errorMessage = viewModel.viewState.footerErrorMessage {
Text(errorMessage)
.font(theme.fonts.footnote)
.foregroundColor(textFieldFooterColor)
.frame(maxWidth: .infinity, alignment: .leading)
.accessibilityIdentifier("textFieldFooter")
}
}
Button(action: submit) {