Prepare supplied financial directory with product coverage and native dossier continuity
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
import {
|
||||
InstitutionView,
|
||||
type InstitutionDetails,
|
||||
} from '@/components/funding-institution';
|
||||
import { Link, useForm } from '@inertiajs/react';
|
||||
import { Frame, card, button } from '@/pages/investment/shared';
|
||||
import type { Criterion } from './shared';
|
||||
@@ -7,6 +11,7 @@ type Reference = {
|
||||
edition: string;
|
||||
provenance: { url: string; checked_on: string; reference: string }[];
|
||||
draft: {
|
||||
kind?: string;
|
||||
title: string;
|
||||
summary: string;
|
||||
manager_name: string;
|
||||
@@ -61,6 +66,11 @@ export default function ReferencePage({ reference }: { reference: Reference }) {
|
||||
<p>{reference.draft.sectors_text}</p>
|
||||
<Criteria items={reference.draft.criteria} />
|
||||
</section>
|
||||
{reference.draft.kind === 'institution' && (
|
||||
<InstitutionView
|
||||
value={reference.draft as unknown as InstitutionDetails}
|
||||
/>
|
||||
)}
|
||||
<section className={card}>
|
||||
<h2>Chamadas documentadas</h2>
|
||||
{reference.draft.windows.map((window) => (
|
||||
|
||||
Reference in New Issue
Block a user