mirror of
https://github.com/LiveFastEatTrashRaccoon/RaccoonForLemmy.git
synced 2025-02-09 09:38:44 +01:00
chore: remove image placeholders and errors in headers
This commit is contained in:
parent
1188fc7ed7
commit
d63d6c26e6
@ -69,19 +69,6 @@ fun CommunityHeader(
|
||||
resource = painterResource,
|
||||
contentScale = ContentScale.FillBounds,
|
||||
contentDescription = null,
|
||||
onFailure = {
|
||||
Text(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
textAlign = TextAlign.Center,
|
||||
text = stringResource(MR.strings.message_image_loading_error)
|
||||
)
|
||||
},
|
||||
onLoading = { progress ->
|
||||
CircularProgressIndicator(
|
||||
progress = progress,
|
||||
color = MaterialTheme.colorScheme.primary,
|
||||
)
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -58,19 +58,6 @@ fun UserHeader(
|
||||
resource = painterResource,
|
||||
contentScale = ContentScale.FillBounds,
|
||||
contentDescription = null,
|
||||
onFailure = {
|
||||
Text(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
textAlign = TextAlign.Center,
|
||||
text = stringResource(MR.strings.message_image_loading_error)
|
||||
)
|
||||
},
|
||||
onLoading = { progress ->
|
||||
CircularProgressIndicator(
|
||||
progress = progress,
|
||||
color = MaterialTheme.colorScheme.primary,
|
||||
)
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user