Skip to content

Commit

Permalink
[FIX/#59] MainNavigator 재설정
Browse files Browse the repository at this point in the history
  • Loading branch information
boiledEgg-s committed Jul 16, 2024
1 parent f817357 commit 3129dff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,10 @@ import androidx.navigation.NavHostController
import androidx.navigation.compose.currentBackStackEntryAsState
import androidx.navigation.compose.rememberNavController
import androidx.navigation.navOptions
import com.terning.feature.calendar.calendar.navigation.Calendar
import com.terning.feature.calendar.calendar.navigation.navigateCalendar
import com.terning.feature.home.home.navigation.Home
import com.terning.feature.home.home.navigation.navigateHome
import com.terning.feature.intern.navigation.Intern
import com.terning.feature.mypage.navigation.navigateMyPage
import com.terning.feature.onboarding.signin.navigation.SignIn
import com.terning.feature.search.search.navigation.Search
import com.terning.feature.search.search.navigation.navigateSearch

class MainNavigator(
Expand All @@ -26,7 +22,7 @@ class MainNavigator(
@Composable get() = navController
.currentBackStackEntryAsState().value?.destination

val startDestination = Home
val startDestination = SignIn

val currentTab: MainTab?
@Composable get() = MainTab.find { tab ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fun MainScreen(
startDestination = navigator.startDestination
) {
homeNavGraph()
calendarNavGraph()
calendarNavGraph(navHostController = navigator.navController)
searchNavGraph(navHostController = navigator.navController)
myPageNavGraph()
signInNavGraph(navHostController = navigator.navController)
Expand Down

0 comments on commit 3129dff

Please sign in to comment.