Remove unnecessary Boxes

Change-Id: Ia404cde7f6b555234bef4b27058fabd4471ea3c6
pull/1220/head
Don Turner 10 months ago
parent 27fd4e544a
commit db5e2b649e

@ -507,7 +507,6 @@ fun ForYouScreenPopulatedFeed(
@PreviewParameter(UserNewsResourcePreviewParameterProvider::class)
userNewsResources: List<UserNewsResource>,
) {
Box {
NiaTheme {
ForYouScreen(
isSyncing = false,
@ -524,7 +523,6 @@ fun ForYouScreenPopulatedFeed(
onDeepLinkOpened = {},
)
}
}
}
@DevicePreviews
@ -533,7 +531,6 @@ fun ForYouScreenOfflinePopulatedFeed(
@PreviewParameter(UserNewsResourcePreviewParameterProvider::class)
userNewsResources: List<UserNewsResource>,
) {
Box {
NiaTheme {
ForYouScreen(
isSyncing = false,
@ -550,7 +547,6 @@ fun ForYouScreenOfflinePopulatedFeed(
onDeepLinkOpened = {},
)
}
}
}
@DevicePreviews
@ -559,7 +555,6 @@ fun ForYouScreenTopicSelection(
@PreviewParameter(UserNewsResourcePreviewParameterProvider::class)
userNewsResources: List<UserNewsResource>,
) {
Box {
NiaTheme {
ForYouScreen(
isSyncing = false,
@ -579,13 +574,11 @@ fun ForYouScreenTopicSelection(
onDeepLinkOpened = {},
)
}
}
}
@DevicePreviews
@Composable
fun ForYouScreenLoading() {
Box {
NiaTheme {
ForYouScreen(
isSyncing = false,
@ -600,7 +593,6 @@ fun ForYouScreenLoading() {
onDeepLinkOpened = {},
)
}
}
}
@DevicePreviews
@ -609,7 +601,6 @@ fun ForYouScreenPopulatedAndLoading(
@PreviewParameter(UserNewsResourcePreviewParameterProvider::class)
userNewsResources: List<UserNewsResource>,
) {
Box {
NiaTheme {
ForYouScreen(
isSyncing = true,
@ -626,5 +617,4 @@ fun ForYouScreenPopulatedAndLoading(
onDeepLinkOpened = {},
)
}
}
}

Loading…
Cancel
Save