Skip to content

Commit

Permalink
BIT-722: Adding generator navigation to the nav bar (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-livefront authored and vvolkgang committed Jun 20, 2024
1 parent 4f20dc6 commit 84856a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import androidx.navigation.navOptions
import com.x8bit.bitwarden.R
import com.x8bit.bitwarden.ui.platform.base.util.EventsEffect
import com.x8bit.bitwarden.ui.platform.components.PlaceholderComposable
import com.x8bit.bitwarden.ui.tools.feature.generator.GeneratorScreen
import com.x8bit.bitwarden.ui.vault.feature.vault.VAULT_ROUTE
import com.x8bit.bitwarden.ui.vault.feature.vault.navigateToVault
import com.x8bit.bitwarden.ui.vault.feature.vault.vaultDestination
Expand Down Expand Up @@ -283,7 +284,7 @@ private const val GENERATOR_ROUTE = "generator"
*/
private fun NavGraphBuilder.generatorDestination() {
composable(GENERATOR_ROUTE) {
PlaceholderComposable(text = "Generator")
GeneratorScreen()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ class GeneratorViewModel @Inject constructor(
val INITIAL_STATE: GeneratorState = GeneratorState(
generatedText = PLACEHOLDER_GENERATED_TEXT,
selectedType = Passcode(
selectedType = Password(),
// TODO (BIT-634): Update the initial state to Password
selectedType = Passphrase(),
),
)
}
Expand Down

0 comments on commit 84856a5

Please sign in to comment.