Skip to content

Commit

Permalink
feat: Use @PreviewAllWindows
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Oct 31, 2024
1 parent 26a490e commit dd2e8a7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)?) {
Expand Down Expand Up @@ -92,9 +92,9 @@ fun SettingsDataManagementMatomoScreen(navigateBack: (() -> Unit)?) {
}
}

@PreviewSmallWindow
@PreviewAllWindows
@Composable
private fun SettingsDataManagementMatomoScreenPreview() {
private fun Preview() {
SwissTransferTheme {
Surface {
SettingsDataManagementMatomoScreen {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -108,9 +108,9 @@ fun SettingsDataManagementScreen(
}
}

@PreviewSmallWindow
@PreviewAllWindows
@Composable
private fun SettingsDataManagementScreenPreview() {
private fun Preview() {
SwissTransferTheme {
Surface {
SettingsDataManagementScreen({}, {})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)?) {
Expand Down Expand Up @@ -92,9 +92,9 @@ fun SettingsDataManagementSentryScreen(navigateBack: (() -> Unit)?) {
}
}

@PreviewSmallWindow
@PreviewAllWindows
@Composable
private fun SettingsDataManagementSentryScreenPreview() {
private fun Preview() {
SwissTransferTheme {
Surface {
SettingsDataManagementSentryScreen {}
Expand Down

0 comments on commit dd2e8a7

Please sign in to comment.