[logged-out-auth-intro] Embed login flow directly in logged-out profile tab

This commit is contained in:
Daniel Arantes Loverde
2026-08-02 09:42:22 -03:00
parent 32f12d6c0e
commit f4b2cce849
5 changed files with 42 additions and 53 deletions

View File

@@ -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)
}
}
}