mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2025-10-03 09:49:21 +02:00
Add ErrorPanelPreview
This commit is contained in:
parent
2d3a4b67d7
commit
5ba95a2c37
1 changed files with 8 additions and 1 deletions
|
@ -59,7 +59,7 @@ fun ErrorPanel(
|
||||||
|
|
||||||
Column(
|
Column(
|
||||||
horizontalAlignment = Alignment.CenterHorizontally,
|
horizontalAlignment = Alignment.CenterHorizontally,
|
||||||
|
modifier = modifier
|
||||||
) {
|
) {
|
||||||
|
|
||||||
Text(
|
Text(
|
||||||
|
@ -126,5 +126,12 @@ fun ErrorPanel(
|
||||||
@Composable
|
@Composable
|
||||||
fun ErrorPanelPreview() {
|
fun ErrorPanelPreview() {
|
||||||
AppTheme {
|
AppTheme {
|
||||||
|
ErrorPanel(
|
||||||
|
errorInfo = ErrorInfo(
|
||||||
|
throwable = Exception("Network error"),
|
||||||
|
userAction = org.schabi.newpipe.error.UserAction.UI_ERROR,
|
||||||
|
request = "Preview request"
|
||||||
|
)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue