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
This commit is contained in:
Daniel Haight 2021-12-14 01:03:17 +00:00
parent 61696bbda6
commit 0481038986
2 changed files with 0 additions and 29 deletions

View File

@ -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<Bool> {
self.binding(
get: { $0.route == .onboarding },
send: { isActive in
return .updateRoute(isActive ? .onboarding : nil)
}
)
}
}
// MARK: PlaceHolders

View File

@ -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: {