Remove deprecated isAuthenticated logic from PingViewModel and related UI components
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user