This commit is contained in:
@@ -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 })}
|
||||
|
||||
Reference in New Issue
Block a user