Provide true to LocalInspectionMode

pull/575/head
Keisuke Takagi 2 years ago
parent 2e6579b350
commit 9091abf09e

@ -35,6 +35,7 @@ import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface import androidx.compose.material3.Surface
import androidx.compose.material3.Text import androidx.compose.material3.Text
import androidx.compose.runtime.Composable import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.DisposableEffect import androidx.compose.runtime.DisposableEffect
import androidx.compose.runtime.getValue import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.mutableStateOf
@ -301,14 +302,18 @@ private fun ExpandedNewsResourcePreview(
@PreviewParameter(UserNewsResourcePreviewParameterProvider::class) @PreviewParameter(UserNewsResourcePreviewParameterProvider::class)
userNewsResources: List<UserNewsResource>, userNewsResources: List<UserNewsResource>,
) { ) {
NiaTheme { CompositionLocalProvider(
Surface { LocalInspectionMode provides true
NewsResourceCardExpanded( ) {
userNewsResource = userNewsResources[0], NiaTheme {
isBookmarked = true, Surface {
onToggleBookmark = {}, NewsResourceCardExpanded(
onClick = {}, userNewsResource = userNewsResources[0],
) isBookmarked = true,
onToggleBookmark = {},
onClick = {},
)
}
} }
} }
} }

Loading…
Cancel
Save