From a41aaee72683ab619ef8540989e94b1e63d72465 Mon Sep 17 00:00:00 2001 From: Vincent TE Date: Wed, 27 Nov 2024 08:13:48 +0100 Subject: [PATCH] chore: Fix sonar --- .../swisstransfer/ui/screen/main/received/ReceivedScreen.kt | 2 +- .../ui/screen/main/transferdetails/TransferDetailsScreen.kt | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/received/ReceivedScreen.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/received/ReceivedScreen.kt index 71d60aa0f..541b18e6c 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/received/ReceivedScreen.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/received/ReceivedScreen.kt @@ -95,7 +95,7 @@ private fun Preview(@PreviewParameter(TransferUiListPreviewParameter::class) tra ReceivedScreen( navigateToDetails = {}, getSelectedTransferUuid = { null }, - getTransfers = { emptyList() }, + getTransfers = { transfers }, ) } } diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/transferdetails/TransferDetailsScreen.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/transferdetails/TransferDetailsScreen.kt index 964931184..f667ac76c 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/transferdetails/TransferDetailsScreen.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/transferdetails/TransferDetailsScreen.kt @@ -35,7 +35,6 @@ import androidx.compose.ui.unit.dp import androidx.hilt.navigation.compose.hiltViewModel import com.infomaniak.core2.FORMAT_DATE_FULL import com.infomaniak.core2.format -import com.infomaniak.multiplatform_swisstransfer.common.interfaces.ui.FileUi import com.infomaniak.multiplatform_swisstransfer.common.ext.toDateFromSeconds import com.infomaniak.multiplatform_swisstransfer.common.interfaces.ui.TransferUi import com.infomaniak.multiplatform_swisstransfer.common.models.TransferDirection @@ -47,7 +46,6 @@ import com.infomaniak.swisstransfer.ui.images.icons.LockedTextField import com.infomaniak.swisstransfer.ui.images.icons.QrCode import com.infomaniak.swisstransfer.ui.images.icons.Share import com.infomaniak.swisstransfer.ui.previewparameter.TransferUiListPreviewParameter -import com.infomaniak.swisstransfer.ui.previewparameter.emailsPreviewData import com.infomaniak.swisstransfer.ui.screen.main.components.SmallWindowTopAppBarScaffold import com.infomaniak.swisstransfer.ui.screen.main.transferdetails.components.PasswordBottomSheet import com.infomaniak.swisstransfer.ui.screen.main.transferdetails.components.QrCodeBottomSheet