From 8f1f724c53be2f543f1d3286089bcba50bb061e3 Mon Sep 17 00:00:00 2001 From: bluemoehre Date: Mon, 13 Jul 2026 14:57:41 +0200 Subject: [PATCH] add empty label text to JobList --- src/components/JobList.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/JobList.tsx b/src/components/JobList.tsx index 8993573..8ce25c0 100644 --- a/src/components/JobList.tsx +++ b/src/components/JobList.tsx @@ -3,14 +3,15 @@ import { cn } from "@/lib/utils" export interface JobListProps { jobs: JobListItemProps[] + emptyLabel?: string className?: string } -export function JobList({ jobs, className }: JobListProps) { +export function JobList({ jobs, emptyLabel = "No running jobs.", className }: JobListProps) { if (jobs.length === 0) { return (
-

No running jobs.

+

{emptyLabel ?? 'No jobs.'}

) }