Skip to content

Commit

Permalink
feat: Add missing SettingDivider preview
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Nov 7, 2024
1 parent 4ce503c commit ec53e4f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ fun OptionScaffold(

@PreviewAllWindows
@Composable
private fun OptionScaffoldPreview() {
private fun Preview() {
SwissTransferTheme {
OptionScaffold(
topAppBarTitleRes = R.string.settingsOptionTheme,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ package com.infomaniak.swisstransfer.ui.screen.main.settings.components

import androidx.compose.foundation.layout.padding
import androidx.compose.material3.HorizontalDivider
import androidx.compose.material3.Surface
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import com.infomaniak.swisstransfer.ui.theme.Dimens
import com.infomaniak.swisstransfer.ui.theme.SwissTransferTheme
import com.infomaniak.swisstransfer.ui.utils.PreviewLightAndDark

@Composable
fun SettingDivider() {
Expand All @@ -32,3 +35,13 @@ fun SettingDivider() {
),
)
}

@PreviewLightAndDark
@Composable
private fun Preview() {
SwissTransferTheme {
Surface {
SettingDivider()
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private fun SettingItemContent(

@PreviewLightAndDark
@Composable
private fun SettingItemPreview() {
private fun Preview() {
SwissTransferTheme {
Surface {
Column(modifier = Modifier.selectableGroup()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ interface SettingOption {

@PreviewLightAndDark
@Composable
private fun SettingOptionItemPreview() {
private fun Preview() {
SwissTransferTheme {
Surface {
Column {
Expand Down

0 comments on commit ec53e4f

Please sign in to comment.