From 197b16f7fe54ab6fd62d2598c46653c99d832b84 Mon Sep 17 00:00:00 2001 From: LEE YOU BIN Date: Thu, 5 Sep 2024 02:34:56 +0900 Subject: [PATCH] =?UTF-8?q?[FEAT/#206]=20=ED=99=94=EB=A9=B4=20=EC=A0=84?= =?UTF-8?q?=ED=99=98=20=EB=A1=9C=EC=A7=81=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../navigation/StartHomeNavigation.kt | 17 +---------------- .../mypage/navigation/MyPageNavigation.kt | 11 +++++++---- .../splash/navigation/SplashNavigation.kt | 19 ++----------------- 3 files changed, 10 insertions(+), 37 deletions(-) diff --git a/feature/src/main/java/com/terning/feature/filtering/starthome/navigation/StartHomeNavigation.kt b/feature/src/main/java/com/terning/feature/filtering/starthome/navigation/StartHomeNavigation.kt index ef2297130..9f493d51a 100644 --- a/feature/src/main/java/com/terning/feature/filtering/starthome/navigation/StartHomeNavigation.kt +++ b/feature/src/main/java/com/terning/feature/filtering/starthome/navigation/StartHomeNavigation.kt @@ -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 @@ -25,20 +23,7 @@ fun NavGraphBuilder.startHomeNavGraph( paddingValues: PaddingValues, navHostController: NavHostController ) { - composable( - exitTransition = { - ExitTransition.None - }, - popEnterTransition = { - EnterTransition.None - }, - enterTransition = { - EnterTransition.None - }, - popExitTransition = { - ExitTransition.None - } - ) { + composable { StartHomeScreen( paddingValues = paddingValues, navigateToHome = { diff --git a/feature/src/main/java/com/terning/feature/mypage/mypage/navigation/MyPageNavigation.kt b/feature/src/main/java/com/terning/feature/mypage/mypage/navigation/MyPageNavigation.kt index 1940effbd..7248c8a2a 100644 --- a/feature/src/main/java/com/terning/feature/mypage/mypage/navigation/MyPageNavigation.kt +++ b/feature/src/main/java/com/terning/feature/mypage/mypage/navigation/MyPageNavigation.kt @@ -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 @@ -24,10 +22,15 @@ fun NavGraphBuilder.myPageNavGraph( paddingValues: PaddingValues, navHostController: NavHostController, ) { - composable{ + composable { MyPageRoute( paddingValues = paddingValues, - navigateToProfileEdit = { name, profile -> navHostController.navigateProfileEdit(name, profile) } + navigateToProfileEdit = { name, profile -> + navHostController.navigateProfileEdit( + name, + profile + ) + } ) } } diff --git a/feature/src/main/java/com/terning/feature/onboarding/splash/navigation/SplashNavigation.kt b/feature/src/main/java/com/terning/feature/onboarding/splash/navigation/SplashNavigation.kt index 255acab86..37dfeca9c 100644 --- a/feature/src/main/java/com/terning/feature/onboarding/splash/navigation/SplashNavigation.kt +++ b/feature/src/main/java/com/terning/feature/onboarding/splash/navigation/SplashNavigation.kt @@ -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 @@ -22,23 +20,10 @@ fun NavController.navigateSplash(navOptions: NavOptions? = null) { } fun NavGraphBuilder.splashNavGraph( - paddingValues : PaddingValues, + paddingValues: PaddingValues, navHostController: NavHostController, ) { - composable( - popExitTransition = { - ExitTransition.None - }, - exitTransition = { - ExitTransition.None - }, - enterTransition = { - EnterTransition.None - }, - popEnterTransition = { - EnterTransition.None - } - ) { + composable { SplashRoute( paddingValues = paddingValues, navigateToHome = {