Skip to content

Commit

Permalink
Bug: App does not navigate to home screen after a successful login
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkeye14 committed Nov 15, 2024
1 parent 1fcac5a commit 9d5c1ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@ package com.mifos.mifosxdroid

import androidx.compose.runtime.Composable
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.compose.rememberNavController
import com.mifos.feature.auth.navigation.authNavGraph
import com.mifos.feature.auth.navigation.navigateToLogin
import com.mifos.feature.splash.navigation.SplashScreens
import com.mifos.feature.splash.navigation.splashNavGraph
import com.mifos.mifosxdroid.navigation.HomeNavigation
import com.mifos.mifosxdroid.navigation.MifosNavGraph
import com.mifos.mifosxdroid.navigation.homeGraph
import com.mifos.mifosxdroid.navigation.navigateHome
import com.mifos.mifosxdroid.navigation.passcodeNavGraph
import org.mifos.library.passcode.navigateToPasscodeScreen

@Composable
fun AndroidClient() {
Expand All @@ -30,11 +34,14 @@ fun AndroidClient() {
)

authNavGraph(
navigatePasscode = {},
navigatePasscode = navController::navigateToPasscodeScreen,
navigateHome = navController::navigateHome,
updateServerConfig = {}
)

composable(MifosNavGraph.MAIN_GRAPH){
HomeNavigation()
}
homeGraph()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -285,4 +285,4 @@ fun HomeNavigation() {
Navigation(navController = navController, padding = paddingValues)
}
}
}
}

0 comments on commit 9d5c1ec

Please sign in to comment.