Status label refactor (#478)
* Refactored status label * Updated colors and replaced old components * Updated docs
This commit is contained in:
1 parent
0611051c5f
commit
5fe92f2b31
6 files changed
+47
-84
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user