Skip to content

Commit 842caa6

Browse files
chore: rm obsolete code
1 parent 227d8e1 commit 842caa6

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Views/UpdatePassword.swift

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ extension UpdatePasswordView: View {
4444
.padding(.vertical, 6)
4545
.background(Divider(), alignment: .bottom)
4646
.padding(.bottom, 8)
47+
4748
Divider()
4849

4950
LabeledContent {
@@ -56,24 +57,20 @@ extension UpdatePasswordView: View {
5657
.padding(.vertical, 6)
5758
.background(Divider(), alignment: .bottom)
5859
.padding(.bottom, 8)
60+
5961
Divider()
62+
6063
Button(action: {
6164
Task {
6265
try await authService.updatePassword(to: confirmPassword)
6366
authService.authView = .authPicker
6467
}
65-
}) {
66-
if authService.authenticationState != .authenticating {
67-
Text("Update password")
68-
.padding(.vertical, 8)
69-
.frame(maxWidth: .infinity)
70-
} else {
71-
ProgressView()
72-
.progressViewStyle(CircularProgressViewStyle(tint: .white))
73-
.padding(.vertical, 8)
74-
.frame(maxWidth: .infinity)
75-
}
76-
}
68+
}, label: {
69+
Text("Update password")
70+
.padding(.vertical, 8)
71+
.frame(maxWidth: .infinity)
72+
73+
})
7774
.disabled(!isValid)
7875
.padding([.top, .bottom], 8)
7976
.frame(maxWidth: .infinity)

0 commit comments

Comments
 (0)