feat: preserve grounded sector ideas through private investment dossiers in QA
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
import SectorContentAnalysis, {
|
||||
type SectorAnalysis,
|
||||
} from '@/components/sector-content-analysis';
|
||||
import { router } from '@inertiajs/react';
|
||||
import { useState } from 'react';
|
||||
import CatalogueChoiceSelect from '@/components/catalogue-choice-select';
|
||||
@@ -20,6 +23,7 @@ function DemographySelection({
|
||||
filters,
|
||||
territories,
|
||||
sectors,
|
||||
sectorReadings = [],
|
||||
}: {
|
||||
evidence: DemographicAnalysis;
|
||||
filters: {
|
||||
@@ -35,6 +39,11 @@ function DemographySelection({
|
||||
parent_id: string | null;
|
||||
}[];
|
||||
sectors: Record<string, string>;
|
||||
sectorReadings?: {
|
||||
title: string;
|
||||
href: string;
|
||||
analysis: SectorAnalysis;
|
||||
}[];
|
||||
}) {
|
||||
const [selected, setSelected] = useState(filters.territories ?? []);
|
||||
const [province, setProvince] = useState('');
|
||||
@@ -226,6 +235,15 @@ function DemographySelection({
|
||||
))}
|
||||
</section>
|
||||
)}
|
||||
{sectorReadings.map((reading) => (
|
||||
<section key={reading.href} className="space-y-3">
|
||||
<h2 className="text-xl font-semibold">{reading.title}</h2>
|
||||
<a href={reading.href} className="underline">
|
||||
Consultar contexto provincial completo
|
||||
</a>
|
||||
<SectorContentAnalysis data={reading.analysis} />
|
||||
</section>
|
||||
))}
|
||||
</Frame>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user