+
setInviteRows((prev) =>
- prev.map((r) =>
- r.id === row.id ? { ...r, role: e.target.value as 'member' | 'admin' } : r,
- ),
+ prev.map((r) => (r.id === row.id ? { ...r, email: e.target.value } : r)),
)
}
- className="w-full appearance-none rounded-md border border-(--border-subtle) bg-(--bg-surface-1) py-2 pl-2.5 pr-7 text-sm text-(--txt-primary) focus:outline-none focus:border-(--border-strong)"
- >
-
-
-
-
-
-
+ onKeyDown={(e) => {
+ if (e.key !== 'Enter' || e.shiftKey) return;
+ e.preventDefault();
+ void submitInviteModal();
+ }}
+ placeholder="name@company.com"
+ className="min-w-[200px] flex-1 rounded-md border border-(--border-subtle) bg-(--bg-surface-1) px-3 py-2 text-sm text-(--txt-primary) placeholder:text-(--txt-placeholder) focus:outline-none focus:border-(--border-strong)"
+ />
+
+
+
+
+
+