Adding warning to Dashboard when Internet is down.

This commit is contained in:
Roland 2024-08-15 20:03:22 -06:00
parent 0f232fd533
commit 47b4da1cfe
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
6 changed files with 28 additions and 27 deletions

View file

@ -1644,19 +1644,19 @@ export function HandPointMessage({children, size = null}) {
</Message>
}
export function WarningMessage({children, size = null}) {
export function WarningMessage({children, size = null, icon='exclamation'}) {
// Use color='yellow' because "warning" does not work.
return <Message color='yellow' icon size={size}>
<SIcon name='exclamation'/>
<SIcon name={icon}/>
<Message.Content>
{children}
</Message.Content>
</Message>
}
export function ErrorMessage({children, size = null}) {
export function ErrorMessage({children, size = null, icon='exclamation'}) {
return <Message error icon size={size}>
<SIcon name='exclamation'/>
<SIcon name={icon}/>
<Message.Content>{children}</Message.Content>
</Message>
}