feat: session sharing frontend #76

Merged
chihlasm merged 14 commits from feat/session-sharing-frontend into main 2026-02-15 04:08:17 +00:00
2 changed files with 1 additions and 3 deletions
Showing only changes of commit a95ef192fb - Show all commits

View File

@@ -17,12 +17,11 @@ const FIELD_TYPE_OPTIONS: { value: IntakeFieldType; label: string }[] = [
interface IntakeFieldEditorProps { interface IntakeFieldEditorProps {
field: IntakeFormField field: IntakeFormField
index: number
onUpdate: (updates: Partial<IntakeFormField>) => void onUpdate: (updates: Partial<IntakeFormField>) => void
onRemove: () => void onRemove: () => void
} }
export function IntakeFieldEditor({ field, index: _index, onUpdate, onRemove }: IntakeFieldEditorProps) { export function IntakeFieldEditor({ field, onUpdate, onRemove }: IntakeFieldEditorProps) {
const [expanded, setExpanded] = useState(false) const [expanded, setExpanded] = useState(false)
const needsOptions = field.field_type === 'select' || field.field_type === 'multi_select' const needsOptions = field.field_type === 'select' || field.field_type === 'multi_select'

View File

@@ -38,7 +38,6 @@ export function IntakeFormBuilder() {
<IntakeFieldEditor <IntakeFieldEditor
key={`field-${index}-${field.display_order}`} key={`field-${index}-${field.display_order}`}
field={field} field={field}
index={index}
onUpdate={(updates) => updateField(index, updates)} onUpdate={(updates) => updateField(index, updates)}
onRemove={() => removeField(index)} onRemove={() => removeField(index)}
/> />