Skip to content

Commit

Permalink
Merge pull request #22 from Infomaniak/refactor-new-transfer
Browse files Browse the repository at this point in the history
Refactor new transfer
  • Loading branch information
LunarX authored Aug 15, 2024
2 parents 93e04b7 + 35eeb1c commit 37e1bd4
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 37e1bd4

Please sign in to comment.