|
|
|
@ -4,8 +4,8 @@ import { MODES } from "../../config";
|
|
|
|
import { useMode } from "../../stores/useMode";
|
|
|
|
import { useMode } from "../../stores/useMode";
|
|
|
|
import { LAYER_IDS } from "../Layers/constants";
|
|
|
|
import { LAYER_IDS } from "../Layers/constants";
|
|
|
|
import { PopupWrapper } from "./PopupWrapper";
|
|
|
|
import { PopupWrapper } from "./PopupWrapper";
|
|
|
|
import { InitialPointPopup } from "./mode-popup/InitialPointPopup";
|
|
|
|
import { PendingPointPopup } from "./mode-popup/PendingPointPopup";
|
|
|
|
import { ApproveWorkingPointPopup } from "./mode-popup/ApproveWorkingPointPopup";
|
|
|
|
import { OnApprovalPointPopup } from "./mode-popup/OnApprovalPointPopup";
|
|
|
|
import { WorkingPointPopup } from "./mode-popup/WorkingPointPopup";
|
|
|
|
import { WorkingPointPopup } from "./mode-popup/WorkingPointPopup";
|
|
|
|
import { FeatureProperties } from "./mode-popup/FeatureProperties";
|
|
|
|
import { FeatureProperties } from "./mode-popup/FeatureProperties";
|
|
|
|
|
|
|
|
|
|
|
|
@ -22,7 +22,7 @@ const SingleFeaturePopup = ({ feature }) => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (mode === MODES.ON_APPROVAL) {
|
|
|
|
if (mode === MODES.ON_APPROVAL) {
|
|
|
|
return <ApproveWorkingPointPopup feature={feature} />;
|
|
|
|
return <OnApprovalPointPopup feature={feature} />;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (mode === MODES.WORKING) {
|
|
|
|
if (mode === MODES.WORKING) {
|
|
|
|
@ -30,7 +30,7 @@ const SingleFeaturePopup = ({ feature }) => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (mode === MODES.PENDING && isInitialLayer)
|
|
|
|
if (mode === MODES.PENDING && isInitialLayer)
|
|
|
|
return <InitialPointPopup feature={feature} />;
|
|
|
|
return <PendingPointPopup feature={feature} />;
|
|
|
|
|
|
|
|
|
|
|
|
return <FeatureProperties feature={feature} />;
|
|
|
|
return <FeatureProperties feature={feature} />;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|