Do not use theme in the Preview, it breaks the screenshots building.
This commit is contained in:
parent
a4bed29a93
commit
4732630d57
9 changed files with 45 additions and 89 deletions
|
|
@ -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(),
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue