Findings page Status component (#34)

* feat(findings): Severity and Status badge WIP

* Remove SeverityBadge from PR
This commit is contained in:
Sophia Dao authored and GitHub committed 2024-08-08 15:04:47 -05:00
1 parent 6d48265618
commit b5b2e225ce
4 files changed
+23 -31

No files matched your search

+18 -7
View File
@@ -1,14 +1,25 @@
import { Chip } from "@nextui-org/react";
import React from "react";
type Status = "completed" | "pending" | "cancelled";
type Status =
| "completed"
| "pending"
| "cancelled"
| "fail"
| "success"
| "muted";
export const statusColorMap: Record<Status, "success" | "danger" | "warning"> =
{
completed: "success",
pending: "warning",
cancelled: "danger",
};
export const statusColorMap: Record<
Status,
"success" | "danger" | "warning" | "default"
> = {
completed: "success",
pending: "warning",
cancelled: "danger",
fail: "danger",
success: "success",
muted: "default",
};
export const StatusBadge = ({ status }: { status: Status }) => {
return (