feat: refactor admin components and improve submission handling

This commit is contained in:
Dreamgineer
2025-09-24 05:44:18 -04:00 Unverified
parent f4307e0090
commit 9f588bf0ff
14 changed files with 169 additions and 44 deletions
+3 -2
View File
@@ -22,6 +22,7 @@ export function ComboBox({
data,
placeholder = "Search...",
id,
name,
className,
...props
}: React.ComponentProps<"button"> & {
@@ -48,7 +49,7 @@ export function ComboBox({
<ChevronsUpDown className="opacity-50" />
</Button>
</PopoverTrigger>
<PopoverContent className="w-[200px] p-0">
<PopoverContent className="w-[400px] p-0">
<Command>
<CommandInput placeholder={placeholder} className="h-9" />
<CommandList>
@@ -77,7 +78,7 @@ export function ComboBox({
</Command>
</PopoverContent>
</Popover>
<input id={id} type="hidden" value={value} />
<input id={id} name={name} type="hidden" value={value} />
</>
);
}