From 0b66836d231808cfc828a9b8fdc3031ac4acf15d Mon Sep 17 00:00:00 2001 From: Taylor Smock Date: Mon, 16 Oct 2023 08:55:42 -0600 Subject: [PATCH] rapid: Add PropTypes for SonarLint Signed-off-by: Taylor Smock --- frontend/src/components/rapidEditor.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/frontend/src/components/rapidEditor.js b/frontend/src/components/rapidEditor.js index fc5f833c81..1db87a4f1a 100644 --- a/frontend/src/components/rapidEditor.js +++ b/frontend/src/components/rapidEditor.js @@ -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'; @@ -278,5 +280,15 @@ function RapidEditor({ return
; } +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;