Update navigation
This commit is contained in:
parent
74a6f77261
commit
f03a06b245
2 changed files with 23 additions and 3 deletions
|
@ -32,6 +32,7 @@ object StudeezDestinations {
|
|||
// Friends flow
|
||||
const val FRIENDS_OVERVIEW_SCREEN = "friends_overview"
|
||||
const val SEARCH_FRIENDS_SCREEN = "search_friends"
|
||||
const val PUBLIC_PROFILE_SCREEN = "public_profile"
|
||||
|
||||
// Create & edit screens
|
||||
const val CREATE_TASK_SCREEN = "create_task"
|
||||
|
|
|
@ -14,10 +14,13 @@ import be.ugent.sel.studeez.common.composable.drawer.getDrawerActions
|
|||
import be.ugent.sel.studeez.common.composable.navbar.NavigationBarActions
|
||||
import be.ugent.sel.studeez.common.composable.navbar.NavigationBarViewModel
|
||||
import be.ugent.sel.studeez.common.composable.navbar.getNavigationBarActions
|
||||
import be.ugent.sel.studeez.screens.friends.friends_overview.FriendsOveriewRoute
|
||||
import be.ugent.sel.studeez.screens.friends.friends_search.SearchFriendsRoute
|
||||
import be.ugent.sel.studeez.screens.home.HomeRoute
|
||||
import be.ugent.sel.studeez.screens.log_in.LoginRoute
|
||||
import be.ugent.sel.studeez.screens.profile.EditProfileRoute
|
||||
import be.ugent.sel.studeez.screens.profile.edit_profile.EditProfileRoute
|
||||
import be.ugent.sel.studeez.screens.profile.ProfileRoute
|
||||
import be.ugent.sel.studeez.screens.profile.public_profile.PublicProfileRoute
|
||||
import be.ugent.sel.studeez.screens.session.SessionRoute
|
||||
import be.ugent.sel.studeez.screens.session_recap.SessionRecapRoute
|
||||
import be.ugent.sel.studeez.screens.sessions.SessionsRoute
|
||||
|
@ -221,11 +224,27 @@ fun StudeezNavGraph(
|
|||
|
||||
// Friends flow
|
||||
composable(StudeezDestinations.FRIENDS_OVERVIEW_SCREEN) {
|
||||
// TODO
|
||||
FriendsOveriewRoute(
|
||||
open = open,
|
||||
popUp = goBack,
|
||||
viewModel = hiltViewModel()
|
||||
)
|
||||
}
|
||||
|
||||
composable(StudeezDestinations.SEARCH_FRIENDS_SCREEN) {
|
||||
// TODO
|
||||
SearchFriendsRoute(
|
||||
popUp = goBack,
|
||||
open = open,
|
||||
viewModel = hiltViewModel()
|
||||
)
|
||||
}
|
||||
|
||||
composable(StudeezDestinations.PUBLIC_PROFILE_SCREEN) {
|
||||
PublicProfileRoute(
|
||||
popUp = goBack,
|
||||
open = open,
|
||||
viewModel = hiltViewModel()
|
||||
)
|
||||
}
|
||||
|
||||
// Create & edit screens
|
||||
|
|
Reference in a new issue