mirror of
https://github.com/fromchat-messenger/app.git
synced 2026-09-22 19:15:05 +03:00
Implement desktop support
Signed-off-by: denis0001-dev <denis0001.dev@ya.ru>
This commit is contained in:
@@ -21,8 +21,8 @@ data class NavigationItem(
|
||||
@Composable
|
||||
fun SimpleNavigationBar(
|
||||
selectedItem: Int,
|
||||
vararg items: NavigationItem,
|
||||
modifier: Modifier = Modifier,
|
||||
vararg items: NavigationItem,
|
||||
) {
|
||||
NavigationBar(modifier) {
|
||||
items.forEachIndexed { index, item ->
|
||||
@@ -48,8 +48,8 @@ fun SimpleNavigationBar(
|
||||
@Composable
|
||||
fun SimpleNavigationRail(
|
||||
selectedItem: Int,
|
||||
vararg items: NavigationItem,
|
||||
modifier: Modifier = Modifier,
|
||||
vararg items: NavigationItem,
|
||||
) {
|
||||
NavigationRail(
|
||||
modifier,
|
||||
@@ -73,4 +73,4 @@ fun SimpleNavigationRail(
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user