From 0481038986f896d2c48f28b912450a6735c07c0c Mon Sep 17 00:00:00 2001 From: Daniel Haight Date: Tue, 14 Dec 2021 01:03:17 +0000 Subject: [PATCH] Remove onboarding nav from home We will link it differently shortly when we introduce an "app" view / feature which will act as the first / root screen --- secant/Features/Home/HomeStore.swift | 10 ---------- secant/Features/Home/Views/HomeView.swift | 19 ------------------- 2 files changed, 29 deletions(-) diff --git a/secant/Features/Home/HomeStore.swift b/secant/Features/Home/HomeStore.swift index f4a81b0..da0e456 100644 --- a/secant/Features/Home/HomeStore.swift +++ b/secant/Features/Home/HomeStore.swift @@ -5,7 +5,6 @@ struct HomeState: Equatable { enum Route: Equatable { case history case send - case onboarding case recoveryPhraseDisplay } var transactionHistoryState: TransactionHistoryState @@ -109,15 +108,6 @@ extension HomeViewStore { } ) } - - var showOnboardingBinding: Binding { - self.binding( - get: { $0.route == .onboarding }, - send: { isActive in - return .updateRoute(isActive ? .onboarding : nil) - } - ) - } } // MARK: PlaceHolders diff --git a/secant/Features/Home/Views/HomeView.swift b/secant/Features/Home/Views/HomeView.swift index a797150..f50fcc1 100644 --- a/secant/Features/Home/Views/HomeView.swift +++ b/secant/Features/Home/Views/HomeView.swift @@ -35,13 +35,6 @@ struct HomeView: View { .primaryButtonStyle .frame(height: 50) - Button( - action: { viewStore.send(.updateRoute(.onboarding)) }, - label: { Text("Show Onboarding") } - ) - .primaryButtonStyle - .frame(height: 50) - Spacer() HStack { @@ -84,18 +77,6 @@ struct HomeView: View { ) } ) - .navigationLinkEmpty( - isActive: viewStore.showOnboardingBinding, - destination: { - OnboardingScreen( - store: Store( - initialState: OnboardingState(), - reducer: .default, - environment: () - ) - ) - } - ) .fullScreenCover( isPresented: viewStore.showHistoryBinding, content: {