|
|
|
|
@ -19,9 +19,8 @@ struct EditingTeamView: View { |
|
|
|
|
@State private var contactType: ContactType? = nil |
|
|
|
|
@State private var sentError: ContactManagerError? = nil |
|
|
|
|
@State private var showSubscriptionView: Bool = false |
|
|
|
|
@State private var registrationDate : Date = Date.distantPast |
|
|
|
|
@State private var callDate : Date = Date.distantPast |
|
|
|
|
@State private var name: String = "" |
|
|
|
|
@State private var registrationDate : Date |
|
|
|
|
@State private var name: String |
|
|
|
|
@FocusState private var focusedField: TeamRegistration.CodingKeys? |
|
|
|
|
|
|
|
|
|
var messageSentFailed: Binding<Bool> { |
|
|
|
|
@ -42,7 +41,6 @@ struct EditingTeamView: View { |
|
|
|
|
self.team = team |
|
|
|
|
_name = .init(wrappedValue: team.name ?? "") |
|
|
|
|
_registrationDate = State(wrappedValue: team.registrationDate ?? Date()) |
|
|
|
|
_callDate = State(wrappedValue: team.callDate ?? Date()) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var body: some View { |
|
|
|
|
|