Fix PR remarks

This commit is contained in:
ismailgulek
2022-05-30 19:56:23 +03:00
parent 18a8bf53a5
commit 11d743a03e
12 changed files with 119 additions and 82 deletions
@@ -28,6 +28,7 @@ enum MockAuthenticationRegistrationScreenState: MockScreenState, CaseIterable {
case passwordWithCredentials
case passwordWithUsernameError
case ssoOnly
case fallback
/// The associated screen
var screenType: Any.Type {
@@ -52,6 +53,8 @@ enum MockAuthenticationRegistrationScreenState: MockScreenState, CaseIterable {
Task { await viewModel.displayError(.usernameUnavailable(VectorL10n.authInvalidUserName)) }
case .ssoOnly:
viewModel = AuthenticationRegistrationViewModel(homeserver: .mockEnterpriseSSO)
case .fallback:
viewModel = AuthenticationRegistrationViewModel(homeserver: .mockFallback)
}