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:
Trey t
2026-01-12 20:52:29 -06:00
parent d2b530b06f
commit 8a958a0f7e

View File

@@ -16,7 +16,6 @@ struct HomeView: View {
@State private var selectedTab = 0
@State private var suggestedTripsGenerator = SuggestedTripsGenerator()
@State private var selectedSuggestedTrip: SuggestedTrip?
@State private var tripCreationViewModel = TripCreationViewModel()
var body: some View {
TabView(selection: $selectedTab) {
@@ -104,7 +103,7 @@ struct HomeView: View {
}
.tint(Theme.warmOrange)
.sheet(isPresented: $showNewTrip) {
TripCreationView(viewModel: tripCreationViewModel, initialSport: selectedSport)
TripWizardView()
}
.onChange(of: showNewTrip) { _, isShowing in
if !isShowing {