Skip to content

Commit

Permalink
[FEAT/#206] 화면 전환 로직 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeyubin committed Sep 4, 2024
1 parent 2c3ac87 commit 197b16f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 37 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.terning.feature.filtering.starthome.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
Expand All @@ -25,20 +23,7 @@ fun NavGraphBuilder.startHomeNavGraph(
paddingValues: PaddingValues,
navHostController: NavHostController
) {
composable<StartHome>(
exitTransition = {
ExitTransition.None
},
popEnterTransition = {
EnterTransition.None
},
enterTransition = {
EnterTransition.None
},
popExitTransition = {
ExitTransition.None
}
) {
composable<StartHome> {
StartHomeScreen(
paddingValues = paddingValues,
navigateToHome = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.terning.feature.mypage.mypage.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
Expand All @@ -24,10 +22,15 @@ fun NavGraphBuilder.myPageNavGraph(
paddingValues: PaddingValues,
navHostController: NavHostController,
) {
composable<MyPage>{
composable<MyPage> {
MyPageRoute(
paddingValues = paddingValues,
navigateToProfileEdit = { name, profile -> navHostController.navigateProfileEdit(name, profile) }
navigateToProfileEdit = { name, profile ->
navHostController.navigateProfileEdit(
name,
profile
)
}
)
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.terning.feature.onboarding.splash.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
Expand All @@ -22,23 +20,10 @@ fun NavController.navigateSplash(navOptions: NavOptions? = null) {
}

fun NavGraphBuilder.splashNavGraph(
paddingValues : PaddingValues,
paddingValues: PaddingValues,
navHostController: NavHostController,
) {
composable<Splash>(
popExitTransition = {
ExitTransition.None
},
exitTransition = {
ExitTransition.None
},
enterTransition = {
EnterTransition.None
},
popEnterTransition = {
EnterTransition.None
}
) {
composable<Splash> {
SplashRoute(
paddingValues = paddingValues,
navigateToHome = {
Expand Down

0 comments on commit 197b16f

Please sign in to comment.