From 268ed419b2da59eced77d99f4db1aa5ac7cda1ae Mon Sep 17 00:00:00 2001 From: Maurice Date: Thu, 2 Jul 2026 15:44:16 +0200 Subject: [PATCH] fix(admin): use TREK's CustomSelect for the invite trip picker The "add to trip" dropdown in the admin create-invite dialog was a native setInviteForm(f => ({ ...f, trip_id: e.target.value === '' ? '' : Number(e.target.value) }))} - className="w-full py-2 px-2.5 rounded-lg text-sm border border-slate-200 bg-white text-slate-700 focus:border-slate-400 outline-none" - > - - {inviteTrips.map(tr => ( - - ))} - + onChange={v => setInviteForm(f => ({ ...f, trip_id: v === '' ? '' : Number(v) }))} + options={[ + { value: '', label: t('admin.invite.tripNone') }, + ...inviteTrips.map(tr => ({ value: tr.id, label: tr.title })), + ]} + searchable={inviteTrips.length > 8} + placeholder={t('admin.invite.tripNone')} + />

{t('admin.invite.tripHint')}

)}