Skip to content

Commit

Permalink
#11 [feat] : Bottom nav graph 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
chanubc committed Apr 18, 2024
1 parent daeb93a commit ca763dd
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package com.sopt.now.compose.feature.nav

import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import com.sopt.now.compose.feature.home.HomeScreen
import com.sopt.now.compose.feature.model.User
import com.sopt.now.compose.feature.mypage.MyPageScreen
import com.sopt.now.compose.feature.search.SearchScreen

@Composable
fun BottomNavGraph(navController: NavHostController, user: User) {
NavHost(navController = navController, startDestination = BottomNavItem.Home.screenRoute) {
composable(BottomNavItem.Home.screenRoute) {
HomeScreen()
}
composable(BottomNavItem.Search.screenRoute) {
SearchScreen()
}
composable(BottomNavItem.MyPage.screenRoute) {
MyPageScreen(user = user)
}
}
}

0 comments on commit ca763dd

Please sign in to comment.