resolucao dos inputs das provincias, distritos, localidades
tests / ci (push) Waiting to run

This commit is contained in:
2026-09-30 12:59:28 +02:00
parent 3dc7c5c649
commit 3395424d82
13 changed files with 355 additions and 92 deletions
+5 -25
View File
@@ -1,6 +1,7 @@
import { createContext, useContext, useRef, useState } from "react";
import { router } from "@inertiajs/react";
import { PortalMenu } from "@/layouts/portal-navigation";
import { ProvinceSelect } from "@/components/investment-territory";
import { MATURITY_LEVELS } from "@/lib/investment-maturity";
import type { Dispatch, FormEvent, ReactNode, SetStateAction } from "react";
import type { LucideIcon } from "lucide-react";
@@ -81,21 +82,6 @@ function QueryStatus({
);
}
const PROVINCES = [
"Maputo Cidade",
"Maputo Província",
"Gaza",
"Inhambane",
"Sofala",
"Manica",
"Tete",
"Zambézia",
"Nampula",
"Cabo Delgado",
"Niassa",
];
/* ------------------------------------------------------------------ */
/* Componentes */
/* ------------------------------------------------------------------ */
@@ -386,18 +372,12 @@ function OpportunitiesView({
</option>
))}
</select>
<select
<ProvinceSelect
value={filters.province}
onChange={(e) => changeFilters({ ...filters, province: e.target.value })}
onChange={(province) => changeFilters({ ...filters, province })}
placeholder="Todas as províncias"
className="rounded-lg border border-slate-200 px-3 py-2 text-sm"
>
<option value="">Todas as províncias</option>
{PROVINCES.map((p) => (
<option key={p} value={p}>
{p}
</option>
))}
</select>
/>
<select
value={filters.maturity}
onChange={(e) => changeFilters({ ...filters, maturity: e.target.value })}