fix(events): show raw codes in test selectors

This commit is contained in:
RockChinQ
2026-08-26 14:12:52 +08:00
parent 4787799cd8
commit 8b63cc0281
5 changed files with 59 additions and 7 deletions
@@ -0,0 +1,18 @@
interface EventSelectOptionContentProps {
event: string;
label: string;
}
export default function EventSelectOptionContent({
event,
label,
}: EventSelectOptionContentProps) {
return (
<span className="flex min-w-0 items-center gap-2">
<span className="truncate font-medium">{label}</span>
<code className="shrink-0 rounded-sm bg-muted px-1 py-0.5 font-mono text-[10px] font-normal text-muted-foreground">
{event}
</code>
</span>
);
}