refactor(common): add a message to preview throwable

This commit is contained in:
Harsh Shandilya 2022-10-03 11:59:42 +05:30
parent d178bebebd
commit 293d12454f
No known key found for this signature in database
2 changed files with 1 additions and 2 deletions

View file

@ -67,5 +67,5 @@ fun NetworkError(
@ThemePreviews
@Composable
fun NetworkErrorPreview() {
LobstersTheme { NetworkError(label = "Failed to load posts", error = Throwable()) }
LobstersTheme { NetworkError(label = "Failed to load posts", error = Throwable("Preview")) }
}

View file

@ -12,7 +12,6 @@
<ID>ModifierReused:LobstersCard.kt$Row( modifier = modifier, verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(8.dp), ) { NetworkImage( url = avatarUrl, placeholder = ClawIcons.Account, contentDescription = contentDescription, modifier = modifier.requiredSize(24.dp).clip(CircleShape), ) Text(text = text, modifier = modifier, style = MaterialTheme.typography.bodyMedium) }</ID>
<ID>ModifierReused:LobstersCard.kt$Text(text = text, modifier = modifier, style = MaterialTheme.typography.bodyMedium)</ID>
<ID>SpreadOperator:Theme.kt$(*providedValues)</ID>
<ID>ThrowingExceptionsWithoutMessageOrCause:NetworkError.kt$Throwable()</ID>
<ID>UnnecessaryAbstractClass:BasePaparazziTest.kt$BasePaparazziTest$BasePaparazziTest</ID>
</CurrentIssues>
</SmellBaseline>