Skip to content

Commit

Permalink
Update documentation and cleanup unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintPatrck committed Apr 12, 2024
1 parent 314cdb9 commit 7f49ba9
Show file tree
Hide file tree
Showing 8 changed files with 195 additions and 203 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ fun NavController.navigateToAuthenticatorGraph(navOptions: NavOptions? = null) {
navigate(AUTHENTICATOR_NAV_BAR_ROUTE, navOptions)
}

/**
* Add the top authenticator graph to the nav graph.
*/
fun NavGraphBuilder.authenticatorGraph(
navController: NavController,
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.x8bit.bitwarden.authenticator.ui.authenticator.feature.itemlisting
import android.widget.Toast
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
Expand All @@ -20,9 +19,6 @@ import androidx.compose.material3.pulltorefresh.rememberPullToRefreshState
import androidx.compose.material3.rememberTopAppBarState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableIntStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.input.nestedscroll.nestedScroll
Expand All @@ -42,7 +38,6 @@ import com.x8bit.bitwarden.authenticator.ui.authenticator.feature.itemlisting.mo
import com.x8bit.bitwarden.authenticator.ui.platform.base.util.EventsEffect
import com.x8bit.bitwarden.authenticator.ui.platform.base.util.asText
import com.x8bit.bitwarden.authenticator.ui.platform.components.appbar.BitwardenTopAppBar
import com.x8bit.bitwarden.authenticator.ui.authenticator.feature.navbar.AuthenticatorBottomAppBar
import com.x8bit.bitwarden.authenticator.ui.platform.components.button.BitwardenFilledTonalButton
import com.x8bit.bitwarden.authenticator.ui.platform.components.button.BitwardenTextButton
import com.x8bit.bitwarden.authenticator.ui.platform.components.dialog.BasicDialogState
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
package com.x8bit.bitwarden.authenticator.ui.authenticator.feature.navbar

import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavOptions
import com.x8bit.bitwarden.authenticator.ui.platform.base.util.composableWithStayTransitions

const val AUTHENTICATOR_NAV_BAR_ROUTE: String = "AuthenticatorNavBarRoute"

fun NavController.navigateToAuthenticatorNavBar(navOptions: NavOptions? = null) {
navigate(AUTHENTICATOR_NAV_BAR_ROUTE, navOptions)
}

fun NavGraphBuilder.authenticatorNavBarDestination(
onNavigateToQrCodeScanner: () -> Unit,
onNavigateToManualKeyEntry: () -> Unit,
onNavigateToEditItem: (itemId: String) -> Unit
onNavigateToEditItem: (itemId: String) -> Unit,
) {
composableWithStayTransitions(
route = AUTHENTICATOR_NAV_BAR_ROUTE,
Expand Down
Loading

0 comments on commit 7f49ba9

Please sign in to comment.