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:
parent
61696bbda6
commit
0481038986
|
@ -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
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue