Skip to content

Commit

Permalink
refactor: terms screen transition 리팩토링 적용 (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
easyhz committed Aug 27, 2024
1 parent 0fbc8d1 commit 43d7a1e
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ import com.easyhz.noffice.navigation.my_page.screen.Notice
import com.easyhz.noffice.navigation.my_page.screen.NoticeDetail
import com.easyhz.noffice.navigation.my_page.screen.Terms
import com.easyhz.noffice.navigation.my_page.screen.Withdrawal
import com.easyhz.noffice.transition.SlideDirection
import com.easyhz.noffice.transition.enterSlide
import com.easyhz.noffice.transition.exitSlide

internal fun NavGraphBuilder.myPageGraph(
snackBarHostState: SnackbarHostState,
Expand Down Expand Up @@ -48,7 +51,11 @@ internal fun NavGraphBuilder.myPageGraph(
}

composable<Terms>(
typeMap = Terms.typeMap
typeMap = Terms.typeMap,
enterTransition = { enterSlide(SlideDirection.Up) },
exitTransition = { exitSlide(SlideDirection.Down) },
popEnterTransition = { enterSlide(SlideDirection.Up) },
popExitTransition = { exitSlide(SlideDirection.Down) }
) {
val args = it.toRoute<Terms>()
TermsScreen(
Expand Down

0 comments on commit 43d7a1e

Please sign in to comment.