fixing ts buid errors and warnings

This commit is contained in:
Winzlieb - 2022-03-11 10:54:16 +01:00
parent cfe65adda7
commit a6da732354
2 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,7 @@ const BoundsChangeListener = ({onBoundsChange}: {onBoundsChange?: (bounds: L.Lat
}
useEffect(() => {
updateBounds()
}, [map])
}, [map, updateBounds])
useMapEvent('moveend', (e) => updateBounds())
useMapEvent('load', (e) => updateBounds())

View File

@ -2,7 +2,7 @@ import i18next from 'i18next'
import '../../i18n/config'
export default () => {
const LanguageSelection = () => {
const languages = [{id: 'de', name: 'Deutsch'}, {id: 'en', name: 'Englisch'}]
return (
@ -17,3 +17,5 @@ export default () => {
</div>
)
}
export default LanguageSelection