[logged-out-auth-intro] Embed login flow directly in logged-out profile tab
This commit is contained in:
@@ -19,12 +19,12 @@ struct MainTabView: View {
|
||||
CartView(appState: $appState, selectedTab: $selectedTab, root: $root)
|
||||
}
|
||||
case .profile:
|
||||
NavigationStack {
|
||||
if appState.session.isAuthenticated {
|
||||
if appState.session.isAuthenticated {
|
||||
NavigationStack {
|
||||
ProfileView(root: $root, selectedTab: $selectedTab, tokenStore: tokenStore, appState: $appState)
|
||||
} else {
|
||||
ProfileLoggedOutView(root: $root)
|
||||
}
|
||||
} else {
|
||||
ProfileLoggedOutView(root: $root, selectedTab: $selectedTab, tokenStore: tokenStore, appState: $appState)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user