Skip to content

Commit

Permalink
Fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
testower committed Sep 11, 2023
1 parent 79e6389 commit 76ddaac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions client-next/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ module.exports = {
],
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
'@typescript-eslint/ban-ts-comment': "off"
},
}
5 changes: 4 additions & 1 deletion client-next/src/components/MapView.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Map, NavigationControl } from 'react-map-gl';
import {Map, NavigationControl} from 'react-map-gl';
import 'maplibre-gl/dist/maplibre-gl.css';

const mapStyle = {
Expand Down Expand Up @@ -28,9 +28,12 @@ const initialViewState = {
zoom: 4,
};
export function MapView() {

return (
<Map
// @ts-ignore
mapLib={import('maplibre-gl')}
// @ts-ignore
mapStyle={mapStyle}
initialViewState={initialViewState}
style={{ width: '100%', height: 'calc(100vh - 184px)' }}
Expand Down

0 comments on commit 76ddaac

Please sign in to comment.