refactor: clean up code formatting and improve layout in usuarios and procedencia-combobox components
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user