Add going back functionality to the email verification screen

This commit is contained in:
ismailgulek
2022-05-26 14:50:08 +03:00
parent 328abfe18d
commit d1da92f0d1
7 changed files with 45 additions and 9 deletions
@@ -46,12 +46,18 @@ class AuthenticationVerifyEmailViewModel: AuthenticationVerifyEmailViewModelType
Task { await callback?(.resend) }
case .cancel:
Task { await callback?(.cancel) }
case .goBack:
Task { await callback?(.goBack) }
}
}
@MainActor func updateForSentEmail() {
state.hasSentEmail = true
}
@MainActor func goBackToEnterEmailForm() {
state.hasSentEmail = false
}
@MainActor func displayError(_ type: AuthenticationVerifyEmailErrorType) {
switch type {