mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2026-06-02 18:52:10 +00:00
Add ErrorPanelPreview
This commit is contained in:
@@ -59,7 +59,7 @@ fun ErrorPanel(
|
||||
|
||||
Column(
|
||||
horizontalAlignment = Alignment.CenterHorizontally,
|
||||
|
||||
modifier = modifier
|
||||
) {
|
||||
|
||||
Text(
|
||||
@@ -126,5 +126,12 @@ fun ErrorPanel(
|
||||
@Composable
|
||||
fun ErrorPanelPreview() {
|
||||
AppTheme {
|
||||
ErrorPanel(
|
||||
errorInfo = ErrorInfo(
|
||||
throwable = Exception("Network error"),
|
||||
userAction = org.schabi.newpipe.error.UserAction.UI_ERROR,
|
||||
request = "Preview request"
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user