Consolida rastreabilidade territorial e plano autenticado V2
This commit is contained in:
@@ -8,6 +8,9 @@ import {
|
||||
import { useState } from 'react';
|
||||
import { Frame, Field, input, button, card, api } from './shared';
|
||||
import PartnershipSourceLinks from '@/components/partnership-source-links';
|
||||
import TerritorialSources, {
|
||||
type TerritorialSourceEvidence,
|
||||
} from '@/components/territorial-source-evidence';
|
||||
import ZoneRelations from './zone-relations';
|
||||
import ZoneMap from './zone-map';
|
||||
import ZoneAttachments from './zone-attachments';
|
||||
@@ -124,6 +127,7 @@ type Props = {
|
||||
validation_status: string;
|
||||
}[];
|
||||
record: Zone;
|
||||
territorialSources?: TerritorialSourceEvidence[];
|
||||
management: boolean;
|
||||
zoneExtensionsAvailable?: boolean;
|
||||
source: Source | null;
|
||||
@@ -186,6 +190,7 @@ function Editor({
|
||||
relations,
|
||||
geometries,
|
||||
record: z,
|
||||
territorialSources,
|
||||
management,
|
||||
zoneExtensionsAvailable = false,
|
||||
source,
|
||||
@@ -268,6 +273,7 @@ function Editor({
|
||||
}
|
||||
return (
|
||||
<Frame title={z.name}>
|
||||
<TerritorialSources sources={territorialSources} />
|
||||
{!management && <PartnershipSourceLinks type="zone" id={z.id} />}
|
||||
<p>
|
||||
{z.code} · {z.category.toUpperCase()} · {z.validation_status} ·{' '}
|
||||
|
||||
Reference in New Issue
Block a user