diff --git a/src/components/Forms/Formik/FormikConnectionField.tsx b/src/components/Forms/Formik/FormikConnectionField.tsx index ce6919c01..afe46e895 100644 --- a/src/components/Forms/Formik/FormikConnectionField.tsx +++ b/src/components/Forms/Formik/FormikConnectionField.tsx @@ -45,7 +45,7 @@ export default function FormikConnectionField({ return ( + checks?.map((playbook) => ({ + label: playbook.title || playbook.name, + value: playbook.id, + icon: + })), + [checks] + ); + + return ( + + ); +} diff --git a/src/ui/Badge/Badge.tsx b/src/ui/Badge/Badge.tsx index 05d06805e..366a01c20 100644 --- a/src/ui/Badge/Badge.tsx +++ b/src/ui/Badge/Badge.tsx @@ -4,7 +4,7 @@ type BadgeProps = { text: React.ReactNode; value?: string; size?: "xs" | "sm" | "md"; - color?: "blue" | "gray"; + color?: "blue" | "gray" | "yellow"; dot?: string; title?: string; className?: string; @@ -29,7 +29,9 @@ export function Badge({ const colorClass = color === "blue" ? "bg-blue-100 text-blue-800" - : "bg-gray-100 text-gray-700"; + : color === "yellow" + ? "bg-yellow-100 text-yellow-800" + : "bg-gray-100 text-gray-700"; const spanClassName = size === "sm" ? "text-sm px-1 py-0.5" : "text-xs px-1 py-0.5"; const svgClassName =