Remove deprecated isAuthenticated logic from PingViewModel and related UI components

This commit is contained in:
2026-03-17 00:18:02 +01:00
parent 4344d04ff9
commit bafb63dc16
4 changed files with 6 additions and 16 deletions
@@ -36,7 +36,6 @@ fun MainApp() {
// Delta-Sync blueprint: resolve the Ping feature view model via Koin.
val pingViewModel: PingViewModel = koinViewModel()
val loginViewModel: LoginViewModel = koinViewModel()
val authState by authTokenManager.authState.collectAsState()
when (currentScreen) {
is AppScreen.Landing -> LandingScreen(
@@ -59,8 +58,7 @@ fun MainApp() {
is AppScreen.Ping -> PingScreen(
viewModel = pingViewModel,
onBack = { navigationPort.navigateToScreen(AppScreen.Home) },
isAuthenticated = authState.isAuthenticated
onBack = { navigationPort.navigateToScreen(AppScreen.Home) } // Navigate back to Home
)
is AppScreen.Profile -> AuthStatusScreen(