refactor: ungenutzte StatusBadge-Komponente entfernen
Board und Detailseite benutzen durchgaengig StatusSelect, das die Pille bereits rendert und zusaetzlich den Wechsel erlaubt. Die reine Anzeige- variante hatte damit keinen Aufrufer mehr. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,28 +0,0 @@
|
|||||||
import type { ProjectStatus } from "@prisma/client";
|
|
||||||
import { statusOf } from "@/lib/status";
|
|
||||||
import { cn } from "@/lib/utils";
|
|
||||||
|
|
||||||
export function StatusBadge({
|
|
||||||
status,
|
|
||||||
size = "md",
|
|
||||||
}: {
|
|
||||||
status: ProjectStatus;
|
|
||||||
size?: "sm" | "md";
|
|
||||||
}) {
|
|
||||||
const meta = statusOf(status);
|
|
||||||
return (
|
|
||||||
<span
|
|
||||||
className={cn(
|
|
||||||
"inline-flex items-center gap-1.5 rounded-full font-medium ring-1 ring-inset",
|
|
||||||
meta.className,
|
|
||||||
size === "sm" ? "px-2 py-0.5 text-[11px]" : "px-2.5 py-1 text-xs",
|
|
||||||
)}
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
className="accent-dot h-1.5 w-1.5 rounded-full"
|
|
||||||
style={{ backgroundColor: meta.color, color: meta.color }}
|
|
||||||
/>
|
|
||||||
{meta.label}
|
|
||||||
</span>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user