Status label refactor (#478)

* Refactored status label

* Updated colors and replaced old components

* Updated docs
This commit is contained in:
Daniel C authored and GitHub committed 2024-07-29 22:59:58 -07:00
1 parent 0611051c5f
commit 5fe92f2b31
6 files changed
+47 -84

No files matched your search

+2 -11
View File
@@ -39,17 +39,8 @@ const Card = ({ data }) => {
</Typography>
{/* TODO - fix prop-type error */}
<StatusLabel
status={data.isActive ? "Live (collecting data)" : "Inactive"}
dot={
data.isActive
? "var(--env-var-color-17)"
: "var(--env-var-color-19)"
}
customStyles={{
backgroundColor: data.isActive
? "var(--env-var-color-20)"
: "var(--env-var-color-21)",
}}
status={data.isActive ? "up" : "cannot resolve"}
text={data.isActive ? "Live (collecting data)" : "Inactive"}
/>
</Stack>
<Typography>{data.url}</Typography>