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,
|
resource = painterResource,
|
||||||
contentScale = ContentScale.FillBounds,
|
contentScale = ContentScale.FillBounds,
|
||||||
contentDescription = null,
|
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,
|
resource = painterResource,
|
||||||
contentScale = ContentScale.FillBounds,
|
contentScale = ContentScale.FillBounds,
|
||||||
contentDescription = null,
|
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