Refactor after code review

Removed the space before `if`, and changed the padding from 5 to 8dp.
pull/443/head
Mohsen Rzna 3 years ago
parent a669302409
commit 0e469223d7

@ -86,12 +86,11 @@ internal fun BookmarksScreen(
) { ) {
when (feedState) { when (feedState) {
Loading -> LoadingState(modifier) Loading -> LoadingState(modifier)
is Success -> is Success -> if (feedState.feed.isNotEmpty()) {
if (feedState.feed.isNotEmpty()) { BookmarksGrid(feedState, removeFromBookmarks, modifier)
BookmarksGrid(feedState, removeFromBookmarks, modifier) } else {
} else { EmptyState(modifier)
EmptyState(modifier) }
}
} }
} }
@ -160,7 +159,7 @@ private fun EmptyState(modifier: Modifier = Modifier) {
fontWeight = FontWeight.Bold fontWeight = FontWeight.Bold
) )
Spacer(modifier = Modifier.height(5.dp)) Spacer(modifier = Modifier.height(8.dp))
Text( Text(
text = stringResource(id = R.string.bookmarks_empty_description), text = stringResource(id = R.string.bookmarks_empty_description),

Loading…
Cancel
Save