diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/ImportFilesScreen.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/ImportFilesScreen.kt index e185cb160..1a8fd555f 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/ImportFilesScreen.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/ImportFilesScreen.kt @@ -61,7 +61,7 @@ fun ImportFilesScreen() { ) { Column { UploadSourceChoiceBottomSheet( - showUploadSourceChoiceBottomSheet = { showUploadSourceChoiceBottomSheet }, + isBottomSheetVisible = { showUploadSourceChoiceBottomSheet }, onDismissRequest = { showUploadSourceChoiceBottomSheet = false }, ) } @@ -70,10 +70,10 @@ fun ImportFilesScreen() { @Composable private fun UploadSourceChoiceBottomSheet( - showUploadSourceChoiceBottomSheet: () -> Boolean, + isBottomSheetVisible: () -> Boolean, onDismissRequest: () -> Unit, ) { - if (showUploadSourceChoiceBottomSheet()) { + if (isBottomSheetVisible()) { SwissTransferBottomSheet( onDismissRequest = onDismissRequest, titleRes = R.string.transferUploadSourceChoiceTitle,