Skip to content

Commit

Permalink
Remove Sync with Bitwarden button
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintPatrck committed Apr 20, 2024
1 parent af1ab4c commit 9608d16
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ fun NavGraphBuilder.itemListingGraph(
onNavigateToQrCodeScanner = navigateToQrCodeScanner,
onNavigateToManualKeyEntry = navigateToManualKeyEntry,
onNavigateToEditItemScreen = navigateToEditItem,
onNavigateToSyncWithBitwardenScreen = {
/*navController.navigateToSyncWithBitwardenScreen()*/
},
onNavigateToImportScreen = { /*navController.navigateToImportScreen()*/ }
)
) { /*navController.navigateToImportScreen()*/ }
editItemDestination(
onNavigateBack = { navController.popBackStack() },
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ fun NavGraphBuilder.itemListingDestination(
onNavigateToQrCodeScanner: () -> Unit = { },
onNavigateToManualKeyEntry: () -> Unit = { },
onNavigateToEditItemScreen: (id: String) -> Unit = { },
onNavigateToSyncWithBitwardenScreen: () -> Unit = { },
onNavigateToImportScreen: () -> Unit = { },
) {
composableWithPushTransitions(
Expand All @@ -26,7 +25,6 @@ fun NavGraphBuilder.itemListingDestination(
onNavigateToQrCodeScanner = onNavigateToQrCodeScanner,
onNavigateToManualKeyEntry = onNavigateToManualKeyEntry,
onNavigateToEditItemScreen = onNavigateToEditItemScreen,
onNavigateToSyncWithBitwardenScreen = onNavigateToSyncWithBitwardenScreen,
onNavigateToImportScreen = onNavigateToImportScreen
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ fun ItemListingScreen(
onNavigateToQrCodeScanner: () -> Unit,
onNavigateToManualKeyEntry: () -> Unit,
onNavigateToEditItemScreen: (id: String) -> Unit,
onNavigateToSyncWithBitwardenScreen: () -> Unit,
onNavigateToImportScreen: () -> Unit,
) {
val state by viewModel.stateFlow.collectAsStateWithLifecycle()
Expand Down Expand Up @@ -278,7 +277,6 @@ fun ItemListingScreen(
-> {
EmptyItemListingContent(
onAddCodeClick = onNavigateToQrCodeScanner,
onSyncWithBitwardenClick = onNavigateToSyncWithBitwardenScreen,
onImportItemsClick = onNavigateToImportScreen,
)
}
Expand Down Expand Up @@ -337,7 +335,6 @@ private fun ItemListingDialogs(
fun EmptyItemListingContent(
modifier: Modifier = Modifier,
onAddCodeClick: () -> Unit = {},
onSyncWithBitwardenClick: () -> Unit = {},
onImportItemsClick: () -> Unit = {},
) {
Column(
Expand Down Expand Up @@ -375,12 +372,6 @@ fun EmptyItemListingContent(
onClick = onAddCodeClick,
)

Spacer(modifier = Modifier.height(8.dp))
BitwardenTextButton(
label = stringResource(id = R.string.sync_items_with_bitwarden),
onClick = onSyncWithBitwardenClick,
)

Spacer(modifier = Modifier.height(16.dp))
BitwardenTextButton(
label = stringResource(id = R.string.import_items),
Expand Down

0 comments on commit 9608d16

Please sign in to comment.