Merge branch 'main' of https://stax.alwaysdata.net/gitea/staxriver/PadelClub
commit
6996ed5e09
@ -1,40 +0,0 @@ |
||||
// |
||||
// EmptyActivityView.swift |
||||
// PadelClub |
||||
// |
||||
// Created by Razmig Sarkissian on 01/03/2024. |
||||
// |
||||
|
||||
import SwiftUI |
||||
|
||||
struct EmptyActivityView: View { |
||||
@State private var newTournament: Tournament? |
||||
|
||||
var body: some View { |
||||
NavigationStack { |
||||
List { |
||||
WelcomeView() |
||||
|
||||
Section { |
||||
RowButtonView("Créer votre premier événement", action: { |
||||
newTournament = Tournament.newEmptyInstance() |
||||
}) |
||||
} |
||||
|
||||
Section { |
||||
RowButtonView("Importer vos tournois Tenup", action: { |
||||
|
||||
}) |
||||
} |
||||
} |
||||
.sheet(item: $newTournament) { tournament in |
||||
EventCreationView(tournaments: [tournament]) |
||||
.tint(.master) |
||||
} |
||||
} |
||||
} |
||||
} |
||||
|
||||
#Preview { |
||||
EmptyActivityView() |
||||
} |
||||
@ -1,24 +0,0 @@ |
||||
// |
||||
// WelcomeView.swift |
||||
// PadelClub |
||||
// |
||||
// Created by Razmig Sarkissian on 01/03/2024. |
||||
// |
||||
|
||||
import SwiftUI |
||||
|
||||
struct WelcomeView: View { |
||||
var body: some View { |
||||
Image(.padelClubLogoFondfonce) |
||||
.resizable() |
||||
.scaledToFit() |
||||
.buttonStyle(.borderedProminent) |
||||
.tint(.logoBackground) |
||||
.listRowBackground(Color.clear) |
||||
.listRowInsets(EdgeInsets(.zero)) |
||||
} |
||||
} |
||||
|
||||
#Preview { |
||||
WelcomeView() |
||||
} |
||||
Loading…
Reference in new issue