Skip to content

Commit

Permalink
rapid: Add PropTypes for SonarLint
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Smock <[email protected]>
  • Loading branch information
tsmock committed Nov 27, 2023
1 parent b120d32 commit 0b66836
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions frontend/src/components/rapidEditor.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { useEffect, useState } from 'react';
import { useDispatch, useSelector } from 'react-redux';

import PropTypes from 'prop-types';

import { OSM_CLIENT_ID, OSM_CLIENT_SECRET, OSM_REDIRECT_URI, OSM_SERVER_URL } from '../config';
import { types } from '../store/actions/editor';

Expand Down Expand Up @@ -278,5 +280,15 @@ function RapidEditor({
return <div className="w-100 vh-minus-69-ns" id="rapid-container-root"></div>;
}

RapidEditor.propTypes = {
setDisable: PropTypes.func,
comment: PropTypes.string,
presets: PropTypes.array,
imagery: PropTypes.string,
gpxUrl: PropTypes.string.isRequired,
powerUser: PropTypes.bool.isRequired,
showSidebar: PropTypes.bool.isRequired,
}

export { RapidEditor, generateStartingHash, equalsUrlParameters, updateUrl };
export default RapidEditor;

0 comments on commit 0b66836

Please sign in to comment.