feat: add starting state to sidebar indicator (#587)

This commit is contained in:
Cafe137
2022-11-22 10:33:38 +01:00
committed by GitHub
parent c3a940c8d7
commit 848e61a7a0
4 changed files with 21 additions and 12 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ export default function Card({ buttonProps, icon, title, subtitle, status }: Pro
} else if (status === 'error') {
statusIcon = <AlertCircle size="13" color="#f44336" />
} else if (status === 'loading') {
statusIcon = <RefreshLine size="13" color="#096cca" />
statusIcon = <RefreshLine size="13" color="orange" />
}
return (
+3
View File
@@ -25,6 +25,9 @@ export default function StatusIcon({ checkState, size, className, isLoading }: P
case CheckState.ERROR:
backgroundColor = '#ff3a52'
break
case CheckState.STARTING:
backgroundColor = 'orange'
break
default:
// Default is error
backgroundColor = '#ff3a52'