Skip to content

Commit

Permalink
fixup! Move panel toggles to control headers
Browse files Browse the repository at this point in the history
Update names to be consistent with UI changes.
  • Loading branch information
victorlin committed Oct 5, 2023
1 parent dee0b5c commit 70ba8bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/components/controls/controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import ToggleTangle from "./toggle-tangle";
import Language from "./language";
import { ControlsContainer } from "./styles";
import FilterData, {FilterInfo} from "./filter";
import {TreeOptionsInfo, MapOptionsInfo, AnimationOptionsInfo, PanelOptionsInfo,
ExplodeTreeInfo, FrequencyInfo, MeasurementsOptionsInfo} from "./miscInfoText";
import {TreeInfo, MapInfo, AnimationOptionsInfo, PanelOptionsInfo,
ExplodeTreeInfo, FrequencyInfo, MeasurementsInfo} from "./miscInfoText";
import { AnnotatedHeader } from "./annotatedHeader";
import MeasurementsOptions from "./measurementsOptions";
import { useSelector } from "react-redux";
Expand Down Expand Up @@ -68,7 +68,7 @@ function Controls({ treeOn, mapOn, frequenciesOn, measurementsOn, mobileDisplay
<AnnotatedHeader
toggle={<PanelToggle panel="tree" on={treeOn} />}
title={t("sidebar:Tree")}
tooltip={TreeOptionsInfo}
tooltip={TreeInfo}
mobile={mobileDisplay}
/>
}
Expand All @@ -88,7 +88,7 @@ function Controls({ treeOn, mapOn, frequenciesOn, measurementsOn, mobileDisplay
<AnnotatedHeader
toggle={<PanelToggle panel="measurements" on={measurementsOn} />}
title={t("sidebar:Measurements")}
tooltip={MeasurementsOptionsInfo}
tooltip={MeasurementsInfo}
mobile={mobileDisplay}
/>
}
Expand All @@ -102,7 +102,7 @@ function Controls({ treeOn, mapOn, frequenciesOn, measurementsOn, mobileDisplay
<AnnotatedHeader
toggle={<PanelToggle panel="map" on={mapOn} />}
title={t("sidebar:Map")}
tooltip={MapOptionsInfo}
tooltip={MapInfo}
mobile={mobileDisplay}
/>
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/controls/miscInfoText.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";


export const TreeOptionsInfo = (
export const TreeInfo = (
<>
Change various options relating to how the tree is displayed.
The exact options available depend on the dataset and specific analysis performed.
Expand All @@ -12,7 +12,7 @@ export const TreeOptionsInfo = (
);


export const MapOptionsInfo = (
export const MapInfo = (
<>
Change various options relating to how the map is displayed.
<br/>
Expand Down Expand Up @@ -42,7 +42,7 @@ export const FrequencyInfo = (
</>
);

export const MeasurementsOptionsInfo = (
export const MeasurementsInfo = (
<>
Change collection of measurements and various display options for the collection.
</>
Expand Down

0 comments on commit 70ba8bb

Please sign in to comment.