feat: apresentar guias educativos com imagem resumo e contexto
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import EducationalGuides from '@/components/educational-guides';
|
||||
import type { EducationalArticle } from '@/components/educational-article-card';
|
||||
import OpportunitySearchFilters from '@/components/opportunity-search-filters';
|
||||
import SearchState from '@/components/search-state';
|
||||
import { Link, router, useForm, usePage } from '@inertiajs/react';
|
||||
@@ -14,6 +16,7 @@ type Feature = {
|
||||
properties: { id: number; title: string; location: string; url: string };
|
||||
};
|
||||
export default function Catalogue({
|
||||
guides = [],
|
||||
filters,
|
||||
references,
|
||||
results,
|
||||
@@ -22,6 +25,7 @@ export default function Catalogue({
|
||||
territorySelection,
|
||||
catalogueUrl,
|
||||
}: {
|
||||
guides?: EducationalArticle[];
|
||||
filters: Record<string, string | string[] | boolean>;
|
||||
references: References;
|
||||
results: {
|
||||
@@ -712,6 +716,7 @@ export default function Catalogue({
|
||||
</div>
|
||||
</section>
|
||||
)}
|
||||
<EducationalGuides articles={guides} />
|
||||
</Frame>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import EducationalGuides from '@/components/educational-guides';
|
||||
import type { EducationalArticle } from '@/components/educational-article-card';
|
||||
import { ClassificationSummary } from '@/components/opportunity-classification';
|
||||
import { Link, router, usePage } from '@inertiajs/react';
|
||||
import { useState } from 'react';
|
||||
@@ -10,12 +12,14 @@ import TerritorialSources from '@/components/territorial-source-evidence';
|
||||
import { Frame, card, button, money, groupLabels } from './shared';
|
||||
import type { Opportunity, Context } from './shared';
|
||||
export default function Detail({
|
||||
guides = [],
|
||||
record: r,
|
||||
context: c,
|
||||
zone_origin,
|
||||
returnUrl = '/oportunidades',
|
||||
dossierOrigin,
|
||||
}: {
|
||||
guides?: EducationalArticle[];
|
||||
record: Opportunity;
|
||||
context: Context;
|
||||
zone_origin?: { id: string; name: string } | null;
|
||||
@@ -309,6 +313,7 @@ export default function Detail({
|
||||
</p>
|
||||
)}
|
||||
</section>
|
||||
<EducationalGuides articles={guides} />
|
||||
</Frame>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user