diff --git a/src/components/controls/controls.tsx b/src/components/controls/controls.tsx index d713e311f..0ce8fbb72 100644 --- a/src/components/controls/controls.tsx +++ b/src/components/controls/controls.tsx @@ -27,13 +27,14 @@ import { AnnotatedHeader } from "./annotatedHeader"; import MeasurementsOptions from "./measurementsOptions"; type Props = { + treeOn: boolean mapOn: boolean frequenciesOn: boolean measurementsOn: boolean mobileDisplay: boolean } -function Controls({ mapOn, frequenciesOn, measurementsOn, mobileDisplay }: Props) { +function Controls({ treeOn, mapOn, frequenciesOn, measurementsOn, mobileDisplay }: Props) { const { t } = useTranslation(); return ( @@ -50,14 +51,18 @@ function Controls({ mapOn, frequenciesOn, measurementsOn, mobileDisplay }: Props - - - - - - - - + {treeOn && + + + + + + + + + + + } {measurementsOn && diff --git a/src/components/main/sidebar.js b/src/components/main/sidebar.js index d1bf076fc..6e9bfcd2c 100644 --- a/src/components/main/sidebar.js +++ b/src/components/main/sidebar.js @@ -25,6 +25,7 @@ export const Sidebar = ( ) : (