mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-12 00:17:02 +02:00
refactor(nip-66): remove Check Types label from monitor feed
Remove label title to simplify monitor feed layout - check type badges are displayed directly without a header for cleaner appearance.
This commit is contained in:
@@ -4,7 +4,6 @@ import {
|
||||
ClickableEventTitle,
|
||||
} from "./BaseEventRenderer";
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import { Label } from "@/components/ui/label";
|
||||
import {
|
||||
getMonitorFrequency,
|
||||
getMonitorChecks,
|
||||
@@ -42,19 +41,16 @@ export function Kind10166Renderer({ event }: BaseEventProps) {
|
||||
|
||||
{/* Check Types */}
|
||||
{checks.length > 0 && (
|
||||
<div className="flex flex-col gap-1.5">
|
||||
<Label className="text-xs text-muted-foreground">Check Types</Label>
|
||||
<div className="flex flex-wrap gap-1.5">
|
||||
{checks.map((check) => (
|
||||
<Badge
|
||||
key={check}
|
||||
variant="secondary"
|
||||
className="h-5 px-2 text-xs"
|
||||
>
|
||||
{getCheckTypeName(check)}
|
||||
</Badge>
|
||||
))}
|
||||
</div>
|
||||
<div className="flex flex-wrap gap-1.5">
|
||||
{checks.map((check) => (
|
||||
<Badge
|
||||
key={check}
|
||||
variant="secondary"
|
||||
className="h-5 px-2 text-xs"
|
||||
>
|
||||
{getCheckTypeName(check)}
|
||||
</Badge>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user