Skip to content

Commit

Permalink
Fix initial detekt issues (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-livefront authored and vvolkgang committed Jun 20, 2024
1 parent dc2ed44 commit ee199b9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import androidx.compose.ui.graphics.Color
*/
@Composable
fun PlaceholderComposable(
text: String = "Placeholder Composable"
text: String = "Placeholder Composable",
) {
Box(
modifier = Modifier
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -49,6 +49,7 @@ fun RootNavScreen(
/**
* TODO: move to splash package (BIT-147)
*/
@Suppress("TopLevelPropertyNaming")
private const val SplashRoute = "splash"

/**
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ class RootNavViewModel @Inject constructor() : ViewModel() {

init {
viewModelScope.launch {
@Suppress("MagicNumber")
delay(1000)
_state.value = RootNavState.Login
}
}

}

/**
Expand Down

0 comments on commit ee199b9

Please sign in to comment.