Merge pull request #193 from LukasKorba/186_ValidationFailed_transition_animation_fix
This commit is contained in:
commit
c658ae9b88
|
@ -9,6 +9,8 @@ import SwiftUI
|
||||||
import ComposableArchitecture
|
import ComposableArchitecture
|
||||||
|
|
||||||
struct ValidationFailedView: View {
|
struct ValidationFailedView: View {
|
||||||
|
@Environment(\.presentationMode) var presentationMode
|
||||||
|
|
||||||
var store: RecoveryPhraseValidationStore
|
var store: RecoveryPhraseValidationStore
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
|
@ -48,7 +50,10 @@ struct ValidationFailedView: View {
|
||||||
}
|
}
|
||||||
|
|
||||||
Button(
|
Button(
|
||||||
action: { viewStore.send(.reset) },
|
action: {
|
||||||
|
viewStore.send(.reset)
|
||||||
|
presentationMode.wrappedValue.dismiss()
|
||||||
|
},
|
||||||
label: { Text("validationFailed.button.tryAgain") }
|
label: { Text("validationFailed.button.tryAgain") }
|
||||||
)
|
)
|
||||||
.activeButtonStyle
|
.activeButtonStyle
|
||||||
|
|
Loading…
Reference in New Issue