fix(opportunities): distinguish missing verification and improve metadata
This commit is contained in:
@@ -9,7 +9,11 @@ import {
|
||||
} from '@/lib/search-territory';
|
||||
import type { EducationalArticle } from '@/components/educational-article-card';
|
||||
import { ClassificationSummary } from '@/components/opportunity-classification';
|
||||
import { Link, router, usePage } from '@inertiajs/react';
|
||||
import { Head, Link, router, usePage } from '@inertiajs/react';
|
||||
import {
|
||||
opportunityDescription,
|
||||
recordedVerificationDate,
|
||||
} from '@/lib/opportunity-information';
|
||||
import { useState } from 'react';
|
||||
import { downloadPublicOpportunityOffline } from '@/lib/public-opportunity-offline';
|
||||
import InvestmentMapPanel from '@/components/investment-map-panel';
|
||||
@@ -46,6 +50,23 @@ export default function Detail({
|
||||
const [offlineMessage, setOfflineMessage] = useState('');
|
||||
return (
|
||||
<Frame title={r.title}>
|
||||
<Head>
|
||||
<meta
|
||||
head-key="description"
|
||||
name="description"
|
||||
content={opportunityDescription(r)}
|
||||
/>
|
||||
<meta
|
||||
head-key="og:title"
|
||||
property="og:title"
|
||||
content={r.title}
|
||||
/>
|
||||
<meta
|
||||
head-key="og:description"
|
||||
property="og:description"
|
||||
content={opportunityDescription(r)}
|
||||
/>
|
||||
</Head>
|
||||
{r.maturity_label === 'Em preparação' && (
|
||||
<p className="rounded border border-amber-700 bg-amber-50 p-4">
|
||||
<strong>Em preparação.</strong> Consulte a oportunidade e
|
||||
@@ -273,6 +294,10 @@ export default function Detail({
|
||||
<dl className={card + ' space-y-4'}>
|
||||
{[
|
||||
['Promotor', r.promoter_name],
|
||||
[
|
||||
'Última verificação registada',
|
||||
recordedVerificationDate(r.last_validated_at),
|
||||
],
|
||||
['Investimento', money(r)],
|
||||
['Maturidade', r.maturity_label],
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user