Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintPatrck committed Apr 13, 2024
1 parent 58b0132 commit 624331d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,21 @@ fun NavGraphBuilder.authenticatorGraph(
.makeText(
navController.context,
R.string.not_yet_implemented,
Toast.LENGTH_SHORT
Toast.LENGTH_SHORT,
)
.show()
/*navController.navigateToSyncWithBitwardenScreen()*/
},
onNavigateToImportScreen = { /*navController.navigateToImportScreen()*/ },
onNavigateToImportScreen = {
Toast
.makeText(
navController.context,
R.string.not_yet_implemented,
Toast.LENGTH_SHORT,
)
.show()
/*navController.navigateToImportScreen()*/
},
onNavigateToSearch = { navController.navigateToSearch() },
)
editItemDestination(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import com.x8bit.bitwarden.authenticator.ui.platform.base.util.composableWithSta

const val AUTHENTICATOR_NAV_BAR_ROUTE: String = "AuthenticatorNavBarRoute"

/**
* Add the authenticator nav bar to the nav graph.
*/
fun NavGraphBuilder.authenticatorNavBarDestination(
onNavigateToSearch: () -> Unit,
onNavigateToQrCodeScanner: () -> Unit,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach
import kotlinx.parcelize.Parcelize

/**
* Top level composable for the authenticator screens.
*/
@Composable
fun AuthenticatorNavBarScreen(
viewModel: AuthenticatorNavBarViewModel = hiltViewModel(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach
import java.util.concurrent.atomic.AtomicReference

/**
* Controls the root level [NavHost] for the app.
*/
@Composable
fun RootNavScreen(
viewModel: RootNavViewModel = hiltViewModel(),
Expand Down

0 comments on commit 624331d

Please sign in to comment.