From 3549281b731f2f3cac874848be8f3b7aff2cff52 Mon Sep 17 00:00:00 2001 From: Nathan Lamy Date: Wed, 30 Jul 2025 17:44:39 +0200 Subject: [PATCH] feat: rework registration form --- app/components/combobox.tsx | 8 ++- app/layout.tsx | 2 +- app/lib/api.ts | 12 +++- app/routes/register.tsx | 138 +++++++++++++++++++++++------------- 4 files changed, 103 insertions(+), 57 deletions(-) diff --git a/app/components/combobox.tsx b/app/components/combobox.tsx index d8586bf..652d871 100644 --- a/app/components/combobox.tsx +++ b/app/components/combobox.tsx @@ -22,7 +22,9 @@ export function Combobox({ defaultText = "Select value...", placeholderText = "Search...", emptyText = "No value found.", - current, setValue + current, + setValue, + disabled = false, }: { values?: { value: string; label: string }[] emptyText?: string @@ -30,17 +32,19 @@ export function Combobox({ defaultText?: string current?: string setValue: (value: string) => void + disabled?: boolean }) { const [open, setOpen] = React.useState(false) return ( - +