feat: replace TripCreationView with TripWizardView in HomeView
Remove classic trip creation form and use new wizard flow directly. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -16,7 +16,6 @@ struct HomeView: View {
|
|||||||
@State private var selectedTab = 0
|
@State private var selectedTab = 0
|
||||||
@State private var suggestedTripsGenerator = SuggestedTripsGenerator()
|
@State private var suggestedTripsGenerator = SuggestedTripsGenerator()
|
||||||
@State private var selectedSuggestedTrip: SuggestedTrip?
|
@State private var selectedSuggestedTrip: SuggestedTrip?
|
||||||
@State private var tripCreationViewModel = TripCreationViewModel()
|
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
TabView(selection: $selectedTab) {
|
TabView(selection: $selectedTab) {
|
||||||
@@ -104,7 +103,7 @@ struct HomeView: View {
|
|||||||
}
|
}
|
||||||
.tint(Theme.warmOrange)
|
.tint(Theme.warmOrange)
|
||||||
.sheet(isPresented: $showNewTrip) {
|
.sheet(isPresented: $showNewTrip) {
|
||||||
TripCreationView(viewModel: tripCreationViewModel, initialSport: selectedSport)
|
TripWizardView()
|
||||||
}
|
}
|
||||||
.onChange(of: showNewTrip) { _, isShowing in
|
.onChange(of: showNewTrip) { _, isShowing in
|
||||||
if !isShowing {
|
if !isShowing {
|
||||||
|
|||||||
Reference in New Issue
Block a user