Skip to content

Commit

Permalink
[REFACTOR/#51] 코드리뷰 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonsuKang committed Jan 21, 2025
1 parent 5b5c6dd commit 9e38b96
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ package com.yapp.navigator

import android.annotation.SuppressLint
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.navigationBarsPadding
import androidx.compose.material3.Scaffold
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.navigation.compose.NavHost
import com.kms.onboarding.onboardingNavGraph
import com.yapp.common.navigation.OrbitNavigator
import com.yapp.common.navigation.destination.TopLevelDestination
import com.yapp.common.navigation.rememberOrbitNavigator
import com.yapp.designsystem.theme.OrbitTheme
import com.yapp.home.homeNavGraph
import com.yapp.mission.missionNavGraph
import com.yapp.mypage.myPageNavGraph
Expand All @@ -32,12 +33,14 @@ internal fun OrbitNavHost(
onClickItem = navigator::navigateToTopLevelDestination,
)
},
containerColor = Color.Transparent,
containerColor = OrbitTheme.colors.gray_900,
) {
NavHost(
navController = navigator.navController,
startDestination = navigator.startDestination,
modifier = Modifier.fillMaxSize(),
modifier = Modifier
.fillMaxSize()
.navigationBarsPadding(),
) {
onboardingNavGraph(
navigator = navigator,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.imePadding
import androidx.compose.foundation.layout.navigationBarsPadding
import androidx.compose.foundation.layout.statusBarsPadding
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import com.kms.onboarding.component.OnBoardingTopAppBar
Expand All @@ -29,8 +27,6 @@ fun OnboardingScreen(
modifier = Modifier
.fillMaxSize()
.background(OrbitTheme.colors.gray_900)
.statusBarsPadding()
.navigationBarsPadding()
.imePadding(),
) {
if (showTopAppBar) {
Expand Down

0 comments on commit 9e38b96

Please sign in to comment.