Entrega dashboard e correccoes transversais preservando Ofertas instalado
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-11-15 18:56:39 +02:00
parent 1349789226
commit fb076c174f
117 changed files with 10380 additions and 1905 deletions
@@ -1,5 +1,6 @@
import { useEffect, useId } from 'react';
import CountrySelect, { type Country } from './country-select';
import CatalogueChoiceSelect from './catalogue-choice-select';
import OrganizationCountryReuse from './organization-country-reuse';
import { Field, input, button } from '@/pages/investment/shared';
import {
@@ -18,6 +19,7 @@ export default function InvestmentProfileEditor({
reportDirty,
labels,
organizations = [],
legalForms = [],
}: {
record: ProfileRecord;
fields: string[];
@@ -28,6 +30,7 @@ export default function InvestmentProfileEditor({
reportDirty: (id: string, dirty: boolean) => void;
labels: Record<string, string>;
organizations?: OrganizationRecord[];
legalForms?: { value: string; label: string }[];
}) {
const isCompany = company || !!record.id;
const editor = useInvestmentProfileEditor(
@@ -113,6 +116,18 @@ export default function InvestmentProfileEditor({
editor.change(key, value)
}
/>
) : key === 'legal_form' ? (
<CatalogueChoiceSelect
id={fieldId}
label={labels[key]}
options={legalForms}
value={editor.draft[key] ?? ''}
disabled={disabled}
error={error}
onChange={(value) =>
editor.change(key, value)
}
/>
) : long ? (
<textarea
id={fieldId}