Skip to content

Commit

Permalink
feat: upgrade mapbox-gl-draw to v1.2.0 (#19) (h/t [danielpza](https:/…
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpza authored Sep 24, 2020
1 parent a6c9883 commit be60843
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 18 deletions.
27 changes: 14 additions & 13 deletions package-lock.json

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

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"styleguide:deploy": "gh-pages -d styleguide",
"release": "npm run build && standard-version",
"cz": "git-cz",
"prepublishOnly": "npm run build",
"prepare": "npm run build",
"postpublish": "npm run styleguide:build && npm run styleguide:deploy"
},
"peerDependencies": {
Expand All @@ -30,13 +30,13 @@
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.10.1",
"@babel/preset-flow": "^7.10.1",
"@mapbox/mapbox-gl-draw": "^1.1.2",
"@urbica/react-map-gl": "^1.13.1",
"@mapbox/mapbox-gl-draw": "^1.2.0",
"@urbica/react-map-gl": "^1.14.2",
"eslint-config-urbica": "^3.0.0",
"flow-bin": "^0.97",
"gh-pages": "^3.0.0",
"git-cz": "^4.6.2",
"mapbox-gl": "^1.11.0",
"mapbox-gl": "^1.12.0",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-scripts": "^3.4.1",
Expand Down
3 changes: 2 additions & 1 deletion src/components/Draw/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import * as React from 'react';
import { MapContext } from '@urbica/react-map-gl';
import MapboxDraw from '@mapbox/mapbox-gl-draw';
import theme from '@mapbox/mapbox-gl-draw/src/lib/theme';
import { modes } from '@mapbox/mapbox-gl-draw';

const modes = MapboxDraw.modes;

export type Props = {
/** Draw controls position */
Expand Down

0 comments on commit be60843

Please sign in to comment.