refactor: use shadcn Checkbox in PatchTestsManagement

This commit is contained in:
2026-05-29 18:06:05 +01:00
parent db4c3aa076
commit 7d1266707c
@@ -4,6 +4,7 @@
import { Button } from '$lib/components/ui/button';
import * as Card from '$lib/components/ui/card';
import { Input } from '$lib/components/ui/input';
import { Checkbox } from '$lib/components/ui/checkbox';
import { Skeleton } from '$lib/components/ui/skeleton';
import * as Modal from '$lib/components/ui/dialog';
@@ -375,11 +376,9 @@
{:else}
{#each availableServices as svc (svc.id)}
<label class="flex items-center gap-2 p-1 hover:bg-gray-100 rounded cursor-pointer">
<input
type="checkbox"
class="rounded border-gray-300 text-black focus:ring-black"
<Checkbox
checked={formData.service_ids.includes(svc.id)}
onchange={() => toggleServiceSelection(svc.id)}
onCheckedChange={() => toggleServiceSelection(svc.id)}
/>
<span class="text-sm">{svc.name}</span>
</label>