File tree Expand file tree Collapse file tree 1 file changed +1
-19
lines changed
feature/main/src/main/kotlin/com/ninecraft/booket/feature/main/component Expand file tree Collapse file tree 1 file changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -36,25 +36,6 @@ import com.slack.circuit.runtime.screen.Screen
3636import kotlinx.collections.immutable.ImmutableList
3737import kotlinx.collections.immutable.toImmutableList
3838
39- @Composable
40- internal fun MainBottomBar (
41- navigator : Navigator ,
42- backStack : SaveableBackStack ,
43- modifier : Modifier = Modifier ,
44- ) {
45- val currentTab = getCurrentTab(backStack)
46- val tabs = MainTab .entries.toImmutableList()
47-
48- MainBottomBar (
49- tabs = tabs,
50- currentTab = currentTab,
51- onTabSelected = { tab ->
52- navigator.popUntilOrGoTo(tab.screen)
53- },
54- modifier = modifier,
55- )
56- }
57-
5839@Composable
5940internal fun MainBottomBar (
6041 tabs : ImmutableList <MainTab >,
@@ -126,6 +107,7 @@ private fun RowScope.MainBottomBarItem(
126107 }
127108}
128109
110+ @Suppress(" unused" )
129111fun Navigator.popUntilOrGoTo (screen : Screen ) {
130112 if (screen in peekBackStack()) {
131113 popUntil { it == screen }
You can’t perform that action at this time.
0 commit comments