code undupe go brr
This commit is contained in:
parent
373d7281fe
commit
064a9d3f31
1 changed files with 8 additions and 6 deletions
|
@ -76,21 +76,23 @@ fun resources(): Resources {
|
||||||
|
|
||||||
fun NavGraphBuilder.studeezGraph(appState: StudeezAppstate) {
|
fun NavGraphBuilder.studeezGraph(appState: StudeezAppstate) {
|
||||||
|
|
||||||
|
val openAndPopUp: (String, String) -> Unit = {
|
||||||
|
route, popUp -> appState.navigateAndPopUp(route, popUp)
|
||||||
|
}
|
||||||
|
|
||||||
composable(StudeezDestinations.SPLASH_SCREEN) {
|
composable(StudeezDestinations.SPLASH_SCREEN) {
|
||||||
SplashScreen(openAndPopUp = { route, popUp -> appState.navigateAndPopUp(route, popUp) })
|
SplashScreen(openAndPopUp)
|
||||||
}
|
}
|
||||||
|
|
||||||
composable(StudeezDestinations.LOGIN_SCREEN) {
|
composable(StudeezDestinations.LOGIN_SCREEN) {
|
||||||
LoginScreen(openAndPopUp = { route, popUp -> appState.navigateAndPopUp(route, popUp) })
|
LoginScreen(openAndPopUp)
|
||||||
}
|
}
|
||||||
|
|
||||||
composable(StudeezDestinations.SIGN_UP_SCREEN) {
|
composable(StudeezDestinations.SIGN_UP_SCREEN) {
|
||||||
SignUpScreen(openAndPopUp = { route, popUp -> appState.navigateAndPopUp(route, popUp) })
|
SignUpScreen(openAndPopUp)
|
||||||
}
|
}
|
||||||
|
|
||||||
composable(StudeezDestinations.HOME_SCREEN) {
|
composable(StudeezDestinations.HOME_SCREEN) {
|
||||||
HomeScreen(
|
HomeScreen(openAndPopUp)
|
||||||
openAndPopUp = { route, popUp -> appState.navigateAndPopUp(route, popUp) }
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in a new issue