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

+1 -13
View File
@@ -76,24 +76,12 @@ const Incidents = () => {
else if (filter === "down") return incident.status === false;
})
.map((incident, idx) => {
const params = {
status: "Down",
backgroundColor: "var(--env-var-color-21)",
statusDotColor: "var(--env-var-color-19)",
};
return {
id: idx,
data: [
{
id: idx + 0,
data: (
<StatusLabel
status={params.status}
dot={params.statusDotColor}
customStyles={{ backgroundColor: params.backgroundColor }}
/>
),
data: <StatusLabel status="down" text="Down" />,
},
{ id: idx + 1, data: new Date(incident.createdAt).toLocaleString() },
{ id: idx + 2, data: incident.statusCode },