Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-18 02:49:26 +00:00
co-authored by renee-png
parent 3bd0c47271
commit dd8b8393f2
+4 -3
View File
@@ -110,10 +110,11 @@ function NewCase() {
<form onSubmit={onSubmit} className="space-y-4">
<div className="grid grid-cols-2 gap-3">
<div className="space-y-2">
<Label>Client</Label>
<Select value={form.client_id} onValueChange={(v) => setForm({ ...form, client_id: v })}>
<SelectTrigger><SelectValue placeholder="Select client" /></SelectTrigger>
<Label>Client <span className="text-muted-foreground font-normal">(optional)</span></Label>
<Select value={form.client_id || "__none"} onValueChange={(v) => setForm({ ...form, client_id: v === "__none" ? "" : v })}>
<SelectTrigger><SelectValue placeholder="No client" /></SelectTrigger>
<SelectContent>
<SelectItem value="__none">No client (attach later)</SelectItem>
{clients.map((c) => <SelectItem key={c.id} value={c.id}>{c.name}</SelectItem>)}
</SelectContent>
</Select>