From 925a792e5b332cc662e51dc78e3ac36a95b98630 Mon Sep 17 00:00:00 2001 From: Kevin Boulongne Date: Thu, 17 Oct 2024 14:21:21 +0200 Subject: [PATCH] feat: Use `@PreviewAllWindows` --- .../main/settings/SettingsDataManagementMatomoScreen.kt | 6 +++--- .../ui/screen/main/settings/SettingsDataManagementScreen.kt | 6 +++--- .../main/settings/SettingsDataManagementSentryScreen.kt | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/settings/SettingsDataManagementMatomoScreen.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/settings/SettingsDataManagementMatomoScreen.kt index d1ceae32f..3a91ea78e 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/settings/SettingsDataManagementMatomoScreen.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/settings/SettingsDataManagementMatomoScreen.kt @@ -40,7 +40,7 @@ import com.infomaniak.swisstransfer.ui.images.illus.matomo.Matomo import com.infomaniak.swisstransfer.ui.screen.main.components.SmallWindowTopAppBarScaffold import com.infomaniak.swisstransfer.ui.theme.Margin import com.infomaniak.swisstransfer.ui.theme.SwissTransferTheme -import com.infomaniak.swisstransfer.ui.utils.PreviewSmallWindow +import com.infomaniak.swisstransfer.ui.utils.PreviewAllWindows @Composable fun SettingsDataManagementMatomoScreen(navigateBack: (() -> Unit)?) { @@ -92,9 +92,9 @@ fun SettingsDataManagementMatomoScreen(navigateBack: (() -> Unit)?) { } } -@PreviewSmallWindow +@PreviewAllWindows @Composable -private fun SettingsDataManagementMatomoScreenPreview() { +private fun Preview() { SwissTransferTheme { Surface { SettingsDataManagementMatomoScreen {} diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/settings/SettingsDataManagementScreen.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/settings/SettingsDataManagementScreen.kt index ea1ab1021..b59396bca 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/settings/SettingsDataManagementScreen.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/settings/SettingsDataManagementScreen.kt @@ -45,7 +45,7 @@ import com.infomaniak.swisstransfer.ui.screen.main.settings.components.SettingIt import com.infomaniak.swisstransfer.ui.theme.Dimens import com.infomaniak.swisstransfer.ui.theme.Margin import com.infomaniak.swisstransfer.ui.theme.SwissTransferTheme -import com.infomaniak.swisstransfer.ui.utils.PreviewSmallWindow +import com.infomaniak.swisstransfer.ui.utils.PreviewAllWindows @Composable fun SettingsDataManagementScreen( @@ -108,9 +108,9 @@ fun SettingsDataManagementScreen( } } -@PreviewSmallWindow +@PreviewAllWindows @Composable -private fun SettingsDataManagementScreenPreview() { +private fun Preview() { SwissTransferTheme { Surface { SettingsDataManagementScreen({}, {}) diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/settings/SettingsDataManagementSentryScreen.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/settings/SettingsDataManagementSentryScreen.kt index 3bcc4ffd6..84af6dfcb 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/settings/SettingsDataManagementSentryScreen.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/settings/SettingsDataManagementSentryScreen.kt @@ -40,7 +40,7 @@ import com.infomaniak.swisstransfer.ui.images.illus.sentry.Sentry import com.infomaniak.swisstransfer.ui.screen.main.components.SmallWindowTopAppBarScaffold import com.infomaniak.swisstransfer.ui.theme.Margin import com.infomaniak.swisstransfer.ui.theme.SwissTransferTheme -import com.infomaniak.swisstransfer.ui.utils.PreviewSmallWindow +import com.infomaniak.swisstransfer.ui.utils.PreviewAllWindows @Composable fun SettingsDataManagementSentryScreen(navigateBack: (() -> Unit)?) { @@ -92,9 +92,9 @@ fun SettingsDataManagementSentryScreen(navigateBack: (() -> Unit)?) { } } -@PreviewSmallWindow +@PreviewAllWindows @Composable -private fun SettingsDataManagementSentryScreenPreview() { +private fun Preview() { SwissTransferTheme { Surface { SettingsDataManagementSentryScreen {}