From e1ff1f8807c4ae87f1913be9e05f510b7f1fb052 Mon Sep 17 00:00:00 2001 From: Gibran Chevalley Date: Fri, 18 Oct 2024 08:20:23 +0200 Subject: [PATCH] Add missing comas and remove empty lines --- .../swisstransfer/ui/components/DoubleButtonCombo.kt | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/components/DoubleButtonCombo.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/components/DoubleButtonCombo.kt index 770a892cb..f2372c508 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/components/DoubleButtonCombo.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/components/DoubleButtonCombo.kt @@ -25,9 +25,7 @@ import androidx.compose.ui.unit.dp import com.infomaniak.swisstransfer.R import com.infomaniak.swisstransfer.ui.theme.Margin import com.infomaniak.swisstransfer.ui.theme.SwissTransferTheme -import com.infomaniak.swisstransfer.ui.utils.PreviewLargeWindow -import com.infomaniak.swisstransfer.ui.utils.PreviewSmallWindow - +import com.infomaniak.swisstransfer.ui.utils.PreviewAllWindows private val WIDTH_LIMIT = 800.dp private val WIDTH_THRESHOLD = 500.dp @@ -106,9 +104,7 @@ private fun SingleButton(button: @Composable (Modifier) -> Unit) { } } - -@PreviewSmallWindow -@PreviewLargeWindow +@PreviewAllWindows @Composable private fun DoubleButtonComboPreview() { SwissTransferTheme { @@ -127,7 +123,7 @@ private fun DoubleButtonComboPreview() { titleRes = R.string.appName, onClick = {}, ) - } + }, ) DoubleButtonCombo( bottomButton = { @@ -136,7 +132,7 @@ private fun DoubleButtonComboPreview() { titleRes = R.string.appName, onClick = {}, ) - } + }, ) } }