|
|
|
|
@ -188,15 +188,18 @@ struct EditingTeamView: View { |
|
|
|
|
DatePicker(selection: $registrationDateModified) { |
|
|
|
|
if registrationDate != registrationDateModified { |
|
|
|
|
HStack { |
|
|
|
|
FooterButtonView("Valider") { |
|
|
|
|
Button("Valider", systemImage: "checkmark.circle") { |
|
|
|
|
registrationDate = registrationDateModified |
|
|
|
|
} |
|
|
|
|
.tint(.green) |
|
|
|
|
Divider() |
|
|
|
|
FooterButtonView("Annuler", role: .cancel) { |
|
|
|
|
Button("Annuler", systemImage: "xmark.circle", role: .cancel) { |
|
|
|
|
registrationDateModified = registrationDate |
|
|
|
|
} |
|
|
|
|
.foregroundStyle(.blue) |
|
|
|
|
.tint(.logoRed) |
|
|
|
|
} |
|
|
|
|
.labelStyle(.iconOnly) |
|
|
|
|
.buttonStyle(.borderedProminent) |
|
|
|
|
} else { |
|
|
|
|
Text("Inscription") |
|
|
|
|
Text(registrationDateModified.localizedWeekDay().capitalized) |
|
|
|
|
|