varias alteracoes
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import { Link, router, useForm } from "@inertiajs/react";
|
||||
import InvestmentTerritory from "@/components/investment-territory";
|
||||
import InvestmentMapPanel from "@/components/investment-map-panel";
|
||||
import { useState } from "react";
|
||||
import { Frame, Field, input, button, card, api } from "./shared";
|
||||
import ZoneRelations from "./zone-relations";
|
||||
@@ -91,8 +93,6 @@ function Editor({
|
||||
name_en: z.name_en ?? "",
|
||||
description: z.description ?? "",
|
||||
description_en: z.description_en ?? "",
|
||||
province: z.province ?? "",
|
||||
district: z.district ?? "",
|
||||
operator_id: z.operator_id ?? "",
|
||||
legal_source_id: z.legal_source_id ?? "",
|
||||
});
|
||||
@@ -153,8 +153,6 @@ function Editor({
|
||||
["code", "Código"],
|
||||
["name", "Nome PT"],
|
||||
["name_en", "Nome EN"],
|
||||
["province", "Província"],
|
||||
["district", "Distrito"],
|
||||
] as const
|
||||
).map(([key, label]) => (
|
||||
<Field key={key} label={label}>
|
||||
@@ -484,6 +482,18 @@ function Editor({
|
||||
</section>
|
||||
</>
|
||||
)}
|
||||
{management && <InvestmentTerritory kind="zones" id={z.id} />}
|
||||
{!management && ["zee", "zfi", "industrial_park"].includes(z.category) && (
|
||||
<InvestmentMapPanel
|
||||
filters={{
|
||||
[z.category === "zee"
|
||||
? "zee_id"
|
||||
: z.category === "zfi"
|
||||
? "zfi_id"
|
||||
: "park_id"]: z.id,
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
</Frame>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user