Skip to content

Commit

Permalink
Update Routing.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
cazitouni authored Oct 4, 2024
1 parent da22ee5 commit fd17f7a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugins/Routing.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ class Routing extends React.Component {
initiallyDocked: PropTypes.bool,
side: PropTypes.string
}),
/** Automatic zoom to the extent of the location. */
zoomAuto: PropTypes.bool,
layers: PropTypes.array,
locatePos: PropTypes.array,
mapcrs: PropTypes.string,
Expand All @@ -72,7 +70,10 @@ class Routing extends React.Component {
showPinLabels: PropTypes.bool,
task: PropTypes.object,
theme: PropTypes.object,
/** Automatically zoom to the extent of the route */
zoomAuto: PropTypes.bool,
zoomToExtent: PropTypes.func

Check failure

Code scanning / ESLint

Disallow trailing whitespace at the end of lines Error

Trailing spaces not allowed.
};
static defaultProps = {
enabledModes: ["auto", "heavyvehicle", "transit", "bicycle", "pedestrian"],
Expand All @@ -85,8 +86,8 @@ class Routing extends React.Component {
initiallyDocked: true,
side: 'left'
},
showPinLabels: true,
zoomAuto: true,

Check failure

Code scanning / ESLint

Require or disallow trailing commas Error

Unexpected trailing comma.
showPinLabels: true
};
state = {
visible: false,
Expand Down

0 comments on commit fd17f7a

Please sign in to comment.