refactor: clean up code formatting and improve layout in usuarios and procedencia-combobox components

This commit is contained in:
2025-08-21 15:57:12 -06:00
parent 02ad043ed6
commit 3e12f4f15a
2 changed files with 103 additions and 54 deletions

View File

@@ -6,11 +6,11 @@ import { Check, ChevronsUpDown, Building2, GraduationCap } from "lucide-react"
import { supabase } from "@/auth/supabase"
/* Util simple */
const cls = (...a: (string|false|undefined)[]) => a.filter(Boolean).join(" ")
const cls = (...a: (string | false | undefined)[]) => a.filter(Boolean).join(" ")
/* --------- COMBOBOX BASE --------- */
function ComboBase({
placeholder, value, onChange, options, icon:Icon,
placeholder, value, onChange, options, icon: Icon,
}: {
placeholder: string
value?: string | null
@@ -28,7 +28,7 @@ function ComboBase({
type="button"
variant="outline"
role="combobox"
className="w-full sm:w-[420px] justify-between truncate"
className="w-full justify-between truncate"
title={current?.label ?? placeholder}
>
<span className="flex items-center gap-2 truncate">