feat: move into separate function
This commit is contained in:
parent
6e35d671c6
commit
27aeb1aade
2 changed files with 15 additions and 4 deletions
|
@ -8,6 +8,7 @@ import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.ui.graphics.Color
|
import androidx.compose.ui.graphics.Color
|
||||||
import androidx.compose.ui.window.WindowState
|
import androidx.compose.ui.window.WindowState
|
||||||
import xyz.atnrch.wrench.components.filemanager.FileManagerDisplay
|
import xyz.atnrch.wrench.components.filemanager.FileManagerDisplay
|
||||||
|
import xyz.atnrch.wrench.components.server.ServerManagerDisplay
|
||||||
import xyz.atnrch.wrench.ui.UIColors
|
import xyz.atnrch.wrench.ui.UIColors
|
||||||
import xyz.atnrch.wrench.watcher.WatcherManager
|
import xyz.atnrch.wrench.watcher.WatcherManager
|
||||||
import java.nio.file.Path
|
import java.nio.file.Path
|
||||||
|
@ -38,10 +39,7 @@ fun WatcherDisplay(
|
||||||
}
|
}
|
||||||
when (tabIndex) {
|
when (tabIndex) {
|
||||||
0 -> FileManagerDisplay(state, watcherManager, currentClick, outputs, onEntryClick)
|
0 -> FileManagerDisplay(state, watcherManager, currentClick, outputs, onEntryClick)
|
||||||
1 -> Text(
|
1 -> ServerManagerDisplay()
|
||||||
color = Color.White,
|
|
||||||
text = "Hello!"
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
package xyz.atnrch.wrench.components.server
|
||||||
|
|
||||||
|
import androidx.compose.material.Text
|
||||||
|
import androidx.compose.runtime.Composable
|
||||||
|
import androidx.compose.ui.graphics.Color
|
||||||
|
|
||||||
|
@Composable
|
||||||
|
fun ServerManagerDisplay() {
|
||||||
|
Text(
|
||||||
|
color = Color.White,
|
||||||
|
text = "Hello!"
|
||||||
|
)
|
||||||
|
}
|
Reference in a new issue