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,
@ -525,7 +524,6 @@ fun ForYouScreenPopulatedFeed(
)
}
}
}
@DevicePreviews
@Composable
@ -533,7 +531,6 @@ fun ForYouScreenOfflinePopulatedFeed(
@PreviewParameter(UserNewsResourcePreviewParameterProvider::class)
userNewsResources: List<UserNewsResource>,
) {
Box {
NiaTheme {
ForYouScreen(
isSyncing = false,
@ -551,7 +548,6 @@ fun ForYouScreenOfflinePopulatedFeed(
)
}
}
}
@DevicePreviews
@Composable
@ -559,7 +555,6 @@ fun ForYouScreenTopicSelection(
@PreviewParameter(UserNewsResourcePreviewParameterProvider::class)
userNewsResources: List<UserNewsResource>,
) {
Box {
NiaTheme {
ForYouScreen(
isSyncing = false,
@ -580,12 +575,10 @@ fun ForYouScreenTopicSelection(
)
}
}
}
@DevicePreviews
@Composable
fun ForYouScreenLoading() {
Box {
NiaTheme {
ForYouScreen(
isSyncing = false,
@ -601,7 +594,6 @@ fun ForYouScreenLoading() {
)
}
}
}
@DevicePreviews
@Composable
@ -609,7 +601,6 @@ fun ForYouScreenPopulatedAndLoading(
@PreviewParameter(UserNewsResourcePreviewParameterProvider::class)
userNewsResources: List<UserNewsResource>,
) {
Box {
NiaTheme {
ForYouScreen(
isSyncing = true,
@ -627,4 +618,3 @@ fun ForYouScreenPopulatedAndLoading(
)
}
}
}

Loading…
Cancel
Save