Add rivals type labels

dev
Platon Yasev 3 years ago
parent d764e745a2
commit 6058b52d48

@ -10,7 +10,6 @@ import { WorkingPointPopup } from "./mode-popup/WorkingPointPopup";
import { FeatureProperties } from "./mode-popup/FeatureProperties"; import { FeatureProperties } from "./mode-popup/FeatureProperties";
const SingleFeaturePopup = ({ feature }) => { const SingleFeaturePopup = ({ feature }) => {
console.log(feature);
const { mode } = useMode(); const { mode } = useMode();
const isRivals = const isRivals =
feature.layer?.id === LAYER_IDS.pvz || feature.layer?.id === LAYER_IDS.pvz ||

@ -68,7 +68,12 @@ export const workingPointFields = [
{ name: "id постамата", field: "postamat_id", empty: "Не указан" }, { name: "id постамата", field: "postamat_id", empty: "Не указан" },
]; ];
const RIVALS_MAPPER = {
pvz: "ПВЗ",
post: "Постамат",
};
export const rivalsConfig = [ export const rivalsConfig = [
{ name: "Инфо", field: "info" }, { name: "Инфо", field: "info" },
{ name: "Категория", field: "type" }, { name: "Категория", field: "type", render: (value) => RIVALS_MAPPER[value] },
]; ];

Loading…
Cancel
Save