Skip to content

Commit

Permalink
Refactor new transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
sirambd committed Aug 15, 2024
1 parent 93e04b7 commit 35eeb1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ import com.infomaniak.swisstransfer.ui.screen.newtransfer.upload.UploadProgressS
import com.infomaniak.swisstransfer.ui.screen.newtransfer.upload.UploadSuccessScreen

@Composable
fun NewTransferNavHost(navController: NavHostController, modifier: Modifier) {
fun NewTransferNavHost(navController: NavHostController) {

NavHost(navController, NewTransferNavigation.startDestination, modifier = modifier.safeDrawingPadding()) {
NavHost(navController, NewTransferNavigation.startDestination) {
composable<ImportFilesDestination> {
ImportFilesScreen()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ import com.infomaniak.swisstransfer.ui.utils.PreviewTablet
fun NewTransferScreen() {
val navController = rememberNavController()

Scaffold { paddingValues ->
NewTransferNavHost(navController, modifier = Modifier.padding(paddingValues))
}
NewTransferNavHost(navController)
}

@PreviewMobile
Expand Down

0 comments on commit 35eeb1c

Please sign in to comment.