Replace BoxWithConstraints with Box (fixes linter error)

Change-Id: Iea0401e28ae0e884511800652fde0f1896642aa0
pull/1220/head
Don Turner 9 months ago
parent 3b1ee87194
commit b1d867f827

@ -508,7 +508,7 @@ fun ForYouScreenPopulatedFeed(
@PreviewParameter(UserNewsResourcePreviewParameterProvider::class)
userNewsResources: List<UserNewsResource>,
) {
BoxWithConstraints {
Box {
NiaTheme {
ForYouScreen(
isSyncing = false,
@ -534,7 +534,7 @@ fun ForYouScreenOfflinePopulatedFeed(
@PreviewParameter(UserNewsResourcePreviewParameterProvider::class)
userNewsResources: List<UserNewsResource>,
) {
BoxWithConstraints {
Box {
NiaTheme {
ForYouScreen(
isSyncing = false,
@ -560,7 +560,7 @@ fun ForYouScreenTopicSelection(
@PreviewParameter(UserNewsResourcePreviewParameterProvider::class)
userNewsResources: List<UserNewsResource>,
) {
BoxWithConstraints {
Box {
NiaTheme {
ForYouScreen(
isSyncing = false,
@ -586,7 +586,7 @@ fun ForYouScreenTopicSelection(
@DevicePreviews
@Composable
fun ForYouScreenLoading() {
BoxWithConstraints {
Box {
NiaTheme {
ForYouScreen(
isSyncing = false,
@ -610,7 +610,7 @@ fun ForYouScreenPopulatedAndLoading(
@PreviewParameter(UserNewsResourcePreviewParameterProvider::class)
userNewsResources: List<UserNewsResource>,
) {
BoxWithConstraints {
Box {
NiaTheme {
ForYouScreen(
isSyncing = true,

Loading…
Cancel
Save