Link documented investment complements to existing fiches and dossier context

This commit is contained in:
2026-10-23 16:34:57 +02:00
parent 4098192a05
commit 603a88e1d3
23 changed files with 881 additions and 25 deletions
+4
View File
@@ -10,6 +10,7 @@ import PartnershipSourceLinks from '@/components/partnership-source-links';
import { Management } from '../management/shared';
import { Layout, Field, control, button, labels, kind } from './shared';
import type { Dossier } from './shared';
import InvestmentComplements, { type ComplementOption } from '@/components/investment-complements';
export default function Show(props: Props) {
return (
<Editor
@@ -20,6 +21,7 @@ export default function Show(props: Props) {
}
type Props = {
complements?: ComplementOption[];
geography: StructureGeography;
existingSubmissions?: { id: string; version: number; updated_at: string }[];
anchorProject?: {
@@ -52,6 +54,7 @@ type Props = {
};
function Editor({
complements = [],
record,
related,
management,
@@ -200,6 +203,7 @@ function Editor({
</section>
)}
{origin && <p>Exploração iniciada em: {origin.title}</p>}
{!management && <InvestmentComplements items={complements}/>}
{!management && auth.user && (
<div className="space-y-2 rounded-xl border p-4">
<p>