Skip to content

Commit

Permalink
[CHORE/#308] 네비게이션 코드 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyobeen-Park committed Dec 23, 2024
1 parent b892c1e commit 23b42da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
package com.terning.feature.home.navigation

import androidx.compose.animation.EnterTransition
import androidx.compose.animation.ExitTransition
import androidx.compose.foundation.layout.PaddingValues
import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavHostController
import androidx.navigation.NavOptions
import androidx.navigation.compose.composable
import com.terning.core.navigation.MainTabRoute
Expand All @@ -21,24 +18,10 @@ fun NavController.navigateHome(navOptions: NavOptions? = null) {

fun NavGraphBuilder.homeNavGraph(
paddingValues: PaddingValues,
navHostController: NavHostController,
navigateToCalendar: () -> Unit,
navigateToIntern:(Long)-> Unit
navigateToIntern: (Long) -> Unit
) {
composable<Home>(
exitTransition = {
ExitTransition.None
},
popEnterTransition = {
EnterTransition.None
},
enterTransition = {
EnterTransition.None
},
popExitTransition = {
ExitTransition.None
}
) {
composable<Home> {
HomeRoute(
paddingValues = paddingValues,
navigateToCalendar = navigateToCalendar,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ fun MainScreen(
)
homeNavGraph(
paddingValues = paddingValues,
navHostController = navigator.navController,
navigateToCalendar = { navigator.navController.navigateCalendar() },
navigateToIntern = { announcementId ->
navigator.navController.navigateIntern(announcementId)
Expand Down

0 comments on commit 23b42da

Please sign in to comment.