mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 20:01:55 +00:00
Do not use theme in the Preview, it breaks the screenshots building.
This commit is contained in:
committed by
Benoit Marty
parent
fd32ef7781
commit
948d4f64f7
+3
-6
@@ -53,7 +53,6 @@ import coil.request.ImageRequest
|
||||
import io.element.android.x.architecture.Async
|
||||
import io.element.android.x.core.compose.LogCompositions
|
||||
import io.element.android.x.core.compose.textFieldState
|
||||
import io.element.android.x.designsystem.ElementXTheme
|
||||
import io.element.android.x.designsystem.components.LabelledCheckbox
|
||||
import io.element.android.x.designsystem.components.dialogs.ErrorDialog
|
||||
import io.element.android.x.ui.strings.R as StringR
|
||||
@@ -213,9 +212,7 @@ fun BugReportView(
|
||||
@Composable
|
||||
@Preview
|
||||
fun BugReportContentPreview() {
|
||||
ElementXTheme(darkTheme = false) {
|
||||
BugReportView(
|
||||
state = BugReportState(),
|
||||
)
|
||||
}
|
||||
BugReportView(
|
||||
state = BugReportState(),
|
||||
)
|
||||
}
|
||||
|
||||
+3
-6
@@ -20,7 +20,6 @@ import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
import io.element.android.x.core.compose.LogCompositions
|
||||
import io.element.android.x.designsystem.ElementXTheme
|
||||
import io.element.android.x.designsystem.components.dialogs.ConfirmationDialog
|
||||
import io.element.android.x.ui.strings.R as StringR
|
||||
|
||||
@@ -66,9 +65,7 @@ fun CrashDetectionContent(
|
||||
@Preview
|
||||
@Composable
|
||||
fun CrashDetectionContentPreview() {
|
||||
ElementXTheme {
|
||||
CrashDetectionContent(
|
||||
state = CrashDetectionState()
|
||||
)
|
||||
}
|
||||
CrashDetectionContent(
|
||||
state = CrashDetectionState()
|
||||
)
|
||||
}
|
||||
|
||||
+1
-4
@@ -28,7 +28,6 @@ import io.element.android.x.core.compose.OnLifecycleEvent
|
||||
import io.element.android.x.core.hardware.vibrate
|
||||
import io.element.android.x.core.screenshot.ImageResult
|
||||
import io.element.android.x.core.screenshot.screenshot
|
||||
import io.element.android.x.designsystem.ElementXTheme
|
||||
import io.element.android.x.designsystem.components.dialogs.ConfirmationDialog
|
||||
import io.element.android.x.ui.strings.R as StringR
|
||||
|
||||
@@ -98,7 +97,5 @@ fun RageshakeDialogContent(
|
||||
@Preview
|
||||
@Composable
|
||||
fun RageshakeDialogContentPreview() {
|
||||
ElementXTheme {
|
||||
RageshakeDialogContent()
|
||||
}
|
||||
RageshakeDialogContent()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user