diff --git a/src/components/controls/controls.tsx b/src/components/controls/controls.tsx index eca01d6b2..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,36 +51,40 @@ function Controls({ mapOn, frequenciesOn, measurementsOn, mobileDisplay }: Props - - - - - - - - + {treeOn && + + + + + + + + + + + } - {measurementsOn ? ( + {measurementsOn && - ) : null} + } - {mapOn ? ( + {mapOn && - ) : null} + } - {frequenciesOn ? ( + {frequenciesOn && - ) : null} + } 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 = ( ) : (