Do not use theme in the Preview, it breaks the screenshots building.

This commit is contained in:
Benoit Marty 2023-01-02 16:12:39 +01:00 committed by Benoit Marty
parent a4bed29a93
commit 4732630d57
9 changed files with 45 additions and 89 deletions

View file

@ -25,7 +25,6 @@ import androidx.compose.runtime.remember
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling.preview.Preview
import io.element.android.x.architecture.Async
import io.element.android.x.designsystem.ElementXTheme
import io.element.android.x.designsystem.components.ProgressDialog
import io.element.android.x.designsystem.components.dialogs.ConfirmationDialog
import io.element.android.x.designsystem.components.preferences.PreferenceCategory
@ -92,7 +91,5 @@ fun LogoutPreferenceContent(
@Composable
@Preview
fun LogoutContentPreview() {
ElementXTheme(darkTheme = false) {
LogoutPreferenceView(LogoutPreferenceState())
}
LogoutPreferenceView(LogoutPreferenceState())
}