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

Loading…
Cancel
Save