@@ -17,10 +17,8 @@ import androidx.compose.material3.SnackbarHostState
1717import androidx.compose.material3.Text
1818import androidx.compose.runtime.Composable
1919import androidx.compose.runtime.getValue
20- import androidx.compose.runtime.mutableIntStateOf
2120import androidx.compose.runtime.mutableStateOf
2221import androidx.compose.runtime.remember
23- import androidx.compose.runtime.saveable.rememberSaveable
2422import androidx.compose.runtime.setValue
2523import androidx.compose.ui.Alignment
2624import androidx.compose.ui.Modifier
@@ -43,7 +41,7 @@ import com.pomonyang.mohanyang.presentation.designsystem.token.MnRadius
4341import com.pomonyang.mohanyang.presentation.designsystem.token.MnSpacing
4442import com.pomonyang.mohanyang.presentation.screen.home.Home
4543import com.pomonyang.mohanyang.presentation.screen.mypage.MyPage
46- import com.pomonyang.mohanyang.presentation.screen.statistics.Statistics
44+ import com.pomonyang.mohanyang.presentation.screen.statistics.StatisticsGraph
4745import com.pomonyang.mohanyang.presentation.theme.MnTheme
4846import com.pomonyang.mohanyang.presentation.util.ThemePreviews
4947import com.pomonyang.mohanyang.ui.component.MohaNyangBottomBar
@@ -70,7 +68,6 @@ private fun MohaNyangApp(
7068) {
7169 var snackbarIconRes by remember { mutableStateOf<Int ?>(null ) }
7270 val navHostController = mohaNyangAppState.navHostController
73- var selectedNavigationIndex by rememberSaveable { mutableIntStateOf(0 ) }
7471
7572 val items = persistentListOf(
7673 BottomNavItem (
@@ -80,7 +77,7 @@ private fun MohaNyangApp(
8077 label = stringResource(R .string.bottom_navigation_home),
8178 ),
8279 BottomNavItem (
83- route = Statistics ,
80+ route = StatisticsGraph ,
8481 iconRes = PresentationR .drawable.ic_chart_bar,
8582 selectedIconRes = PresentationR .drawable.ic_chart_bar_fill,
8683 label = stringResource(R .string.bottom_navigation_statistics),
@@ -112,8 +109,7 @@ private fun MohaNyangApp(
112109 MohaNyangBottomBar (
113110 navController = navHostController,
114111 items = items,
115- selectedIndex = selectedNavigationIndex,
116- onItemSelected = { selectedNavigationIndex = it },
112+ currentBottomRootRoute = mohaNyangAppState.currentBottomRootRoute,
117113 )
118114 }
119115 },
0 commit comments