Skip to content

Commit 973e083

Browse files
committed
[BOOK-124] chore: 사용하지 않는 컴포넌트 제거
1 parent 56a5812 commit 973e083

File tree

1 file changed

+1
-19
lines changed
  • feature/main/src/main/kotlin/com/ninecraft/booket/feature/main/component

1 file changed

+1
-19
lines changed

feature/main/src/main/kotlin/com/ninecraft/booket/feature/main/component/MainBottomBar.kt

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -36,25 +36,6 @@ import com.slack.circuit.runtime.screen.Screen
3636
import kotlinx.collections.immutable.ImmutableList
3737
import 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
5940
internal fun MainBottomBar(
6041
tabs: ImmutableList<MainTab>,
@@ -126,6 +107,7 @@ private fun RowScope.MainBottomBarItem(
126107
}
127108
}
128109

110+
@Suppress("unused")
129111
fun Navigator.popUntilOrGoTo(screen: Screen) {
130112
if (screen in peekBackStack()) {
131113
popUntil { it == screen }

0 commit comments

Comments
 (0)