view client/src/components/paneSetups.js @ 3295:a409608dd6b3

client: waterlevel diagram: removed updated hook to avoid unintended re-rendering Situations in which the diagram needs to be re-rendered can be addressed specifically with watchers.
author Markus Kottlaender <markus@intevation.de>
date Thu, 16 May 2019 15:36:11 +0200
parents 5ec34e08b01d
children fa7dc3f31ef3
line wrap: on
line source

const main = { id: "main", component: "Map" };

export const DEFAULT = { main };
export const COMPARESURVEYS = {
  main,
  compare: { id: "compare-survey", component: "Map" }
};
export const FAIRWAYPROFILE = {
  main,
  fairwayprofile: { id: "fairwayprofile", component: "Fairwayprofile" }
};

export const AVAILABLEFAIRWAYDEPTH = {
  main,
  availablefairwaydepth: {
    id: "availablefairwaydepth",
    component: "AvailableFairwayDepth"
  }
};

export const COMPARESURVEYS_FAIRWAYPROFILE = {
  main,
  compare: { id: "compare-survey", component: "Map" },
  fairwayprofile: { id: "fairwayprofile", component: "Fairwayprofile" }
};
export const GAUGE_WATERLEVEL = {
  main,
  waterlevel: { id: "gauge-waterlevel", component: "Waterlevel" }
};
export const GAUGE_HYDROLOGICALCONDITIONS = {
  main,
  hydrological: {
    id: "gauge-hydrologicalconditions",
    component: "HydrologicalConditions"
  }
};
export const GAUGE_WATERLEVEL_HYDROLOGICALCONDITIONS = {
  main,
  waterlevel: { id: "gauge-waterlevel", component: "Waterlevel" },
  hydrological: {
    id: "gauge-hydrologicalconditions",
    component: "HydrologicalConditions"
  }
};