chore: remove image placeholders and errors in headers

This commit is contained in:
Diego Beraldin 2023-09-20 23:36:22 +02:00
parent 1188fc7ed7
commit d63d6c26e6
2 changed files with 0 additions and 26 deletions

View File

@ -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,
)
},
)
}

View File

@ -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,
)
},
)
}