Skip to content

Commit

Permalink
JS→TS: src/components/controls/controls.tsx
Browse files Browse the repository at this point in the history
This requires bumping react-i18next to v11.15.6, the earliest version to
contain a bug fix for TypeScript ≥ 4.6¹.

¹ i18next/react-i18next@306e03a
  • Loading branch information
victorlin committed May 5, 2023
1 parent be5b785 commit cc57f40
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 9 deletions.
22 changes: 15 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"react-ga": "^2.2.0",
"react-helmet": "^5.2.1",
"react-hot-loader": "^4.8.4",
"react-i18next": "^11.3.3",
"react-i18next": "^11.15.6",
"react-icons": "^3.9.0",
"react-redux": "^7.2.6",
"react-select": "^5.2.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,14 @@ import {TreeOptionsInfo, MapOptionsInfo, AnimationOptionsInfo, PanelOptionsInfo,
import { AnnotatedHeader } from "./annotatedHeader";
import MeasurementsOptions from "./measurementsOptions";

function Controls({mapOn, frequenciesOn, measurementsOn, mobileDisplay}) {
type Props = {
mapOn: boolean
frequenciesOn: boolean
measurementsOn: boolean
mobileDisplay: boolean
}

function Controls({ mapOn, frequenciesOn, measurementsOn, mobileDisplay }: Props) {
const { t } = useTranslation();

return (
Expand Down

0 comments on commit cc57f40

Please sign in to comment.