mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 05:57:03 +05:30
refactor(common): add a message to preview throwable
This commit is contained in:
parent
d178bebebd
commit
293d12454f
2 changed files with 1 additions and 2 deletions
|
@ -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")) }
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue