Merge pull request #193 from LukasKorba/186_ValidationFailed_transition_animation_fix

This commit is contained in:
Francisco Gindre 2022-03-07 07:45:42 -03:00 committed by GitHub
commit c658ae9b88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -9,6 +9,8 @@ import SwiftUI
import ComposableArchitecture
struct ValidationFailedView: View {
@Environment(\.presentationMode) var presentationMode
var store: RecoveryPhraseValidationStore
var body: some View {
@ -48,7 +50,10 @@ struct ValidationFailedView: View {
}
Button(
action: { viewStore.send(.reset) },
action: {
viewStore.send(.reset)
presentationMode.wrappedValue.dismiss()
},
label: { Text("validationFailed.button.tryAgain") }
)
.activeButtonStyle