mirror of
https://github.com/bitwarden/android.git
synced 2026-03-21 22:00:42 -05:00
Fix initial detekt issues (#10)
This commit is contained in:
committed by
Álison Fernandes
parent
dc2ed4403a
commit
ee199b9e9f
@@ -14,7 +14,7 @@ import androidx.compose.ui.graphics.Color
|
||||
*/
|
||||
@Composable
|
||||
fun PlaceholderComposable(
|
||||
text: String = "Placeholder Composable"
|
||||
text: String = "Placeholder Composable",
|
||||
) {
|
||||
Box(
|
||||
modifier = Modifier
|
||||
|
||||
@@ -18,7 +18,7 @@ import com.x8bit.bitwarden.ui.components.PlaceholderComposable
|
||||
*/
|
||||
@Composable
|
||||
fun RootNavScreen(
|
||||
viewModel: RootNavViewModel = viewModel()
|
||||
viewModel: RootNavViewModel = viewModel(),
|
||||
) {
|
||||
val navController = rememberNavController()
|
||||
val state by viewModel.state.collectAsStateWithLifecycle()
|
||||
@@ -49,6 +49,7 @@ fun RootNavScreen(
|
||||
/**
|
||||
* TODO: move to splash package (BIT-147)
|
||||
*/
|
||||
@Suppress("TopLevelPropertyNaming")
|
||||
private const val SplashRoute = "splash"
|
||||
|
||||
/**
|
||||
@@ -81,7 +82,8 @@ private fun NavController.navigateToSplashAsRoot() {
|
||||
/**
|
||||
* TODO move to login package(BIT-146)
|
||||
*/
|
||||
private val LoginRoute = "login"
|
||||
@Suppress("TopLevelPropertyNaming")
|
||||
private const val LoginRoute = "login"
|
||||
|
||||
/**
|
||||
* Add login destinations to the nav graph.
|
||||
|
||||
@@ -21,11 +21,11 @@ class RootNavViewModel @Inject constructor() : ViewModel() {
|
||||
|
||||
init {
|
||||
viewModelScope.launch {
|
||||
@Suppress("MagicNumber")
|
||||
delay(1000)
|
||||
_state.value = RootNavState.Login
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user