Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

WV-2822: ESLint Cleanup - react/forbid-prop-types and file fixes (#6342)

Jason Hurleyd0ba767d24d7
diff --git a/eslint_log.txt b/eslint_log.txt
new file mode 100644
index 000000000..e69de29bb
diff --git a/web/.eslintrc b/web/.eslintrc
index c07d94858..8febe5a72 100644
--- a/web/.eslintrc
+++ b/web/.eslintrc
@@ -152,7 +152,6 @@
}
}
],
- "react/forbid-prop-types": "off", // 411 errors across 139 files
"react/require-default-props": "off", // 1644 errors across > 80 files
"class-methods-use-this": "warn", // 15 errors across 13 files
"react/no-unused-class-component-methods": "error",
diff --git a/web/js/app.js b/web/js/app.js
index b6d23cdde..dfedd8836 100644
--- a/web/js/app.js
+++ b/web/js/app.js
@@ -267,12 +267,12 @@ App.propTypes = {
locationKey: PropTypes.string,
modalId: PropTypes.string,
notificationClick: PropTypes.func,
- notifications: PropTypes.object,
+ notifications: PropTypes.shape,
numberOutagesUnseen: PropTypes.number,
- parameters: PropTypes.object,
+ parameters: PropTypes.shape,
setScreenInfoAction: PropTypes.func,
hideNotificationsPopup: PropTypes.bool,
- config: PropTypes.object,
+ config: PropTypes.shape,
};
App.defaultProps = {
diff --git a/web/js/components/animation-widget/gif-button.js b/web/js/components/animation-widget/gif-button.js
index 78f0bf075..b6701514e 100644
--- a/web/js/components/animation-widget/gif-button.js
+++ b/web/js/components/animation-widget/gif-button.js
@@ -192,8 +192,8 @@ export default connect(
)(GifButton);
GifButton.propTypes = {
- activePalettes: PropTypes.object,
- visibleLayersForProj: PropTypes.array,
+ activePalettes: PropTypes.shape,
+ visibleLayersForProj: PropTypes.arrayOf,
hasCustomPalettes: PropTypes.bool,
hasNonDownloadableLayer: PropTypes.bool,
isGifActive: PropTypes.bool,
diff --git a/web/js/components/animation-widget/gif-panel.js b/web/js/components/animation-widget/gif-panel.js
index f7b48018a..60b761102 100644
--- a/web/js/components/animation-widget/gif-panel.js
+++ b/web/js/components/animation-widget/gif-panel.js
@@ -118,14 +118,14 @@ GifPanel.propTypes = {
endDate: PropTypes.string,
firstLabel: PropTypes.string,
increment: PropTypes.string,
- lonlats: PropTypes.array,
+ lonlats: PropTypes.arrayOf,
numberOfFrames: PropTypes.number,
onCheck: PropTypes.func,
onClick: PropTypes.func,
onDownloadClick: PropTypes.func,
projId: PropTypes.string,
resolution: PropTypes.string,
- resolutions: PropTypes.object,
+ resolutions: PropTypes.shape,
showDates: PropTypes.bool,
speed: PropTypes.number,
startDate: PropTypes.string,
diff --git a/web/js/components/animation-widget/gif-post-creation.js b/web/js/components/animation-widget/gif-post-creation.js
index 995d5849b..fcb980033 100644
--- a/web/js/components/animation-widget/gif-post-creation.js
+++ b/web/js/components/animation-widget/gif-post-creation.js
@@ -140,10 +140,10 @@ export default class GifResults extends Component {
}
GifResults.propTypes = {
- boundaries: PropTypes.object,
- closeBtn: PropTypes.object,
+ boundaries: PropTypes.shape,
+ closeBtn: PropTypes.shape,
endDate: PropTypes.string,
- gifObject: PropTypes.object,
+ gifObject: PropTypes.shape,
increment: PropTypes.string,
onClose: PropTypes.func,
screenHeight: PropTypes.number,
diff --git a/web/js/components/animation-widget/play-queue.js b/web/js/components/animation-widget/play-queue.js
index ad1bf4e04..3efbfa2e3 100644
--- a/web/js/components/animation-widget/play-queue.js
+++ b/web/js/components/animation-widget/play-queue.js
@@ -464,23 +464,23 @@ class PlayQueue extends React.Component {
}
PlayQueue.propTypes = {
- endDate: PropTypes.object.isRequired,
+ endDate: PropTypes.shape.isRequired,
isMobile: PropTypes.bool,
isPlaying: PropTypes.bool.isRequired,
promiseImageryForTime: PropTypes.func.isRequired,
selectDate: PropTypes.func.isRequired,
speed: PropTypes.number.isRequired,
- startDate: PropTypes.object.isRequired,
+ startDate: PropTypes.shape.isRequired,
togglePlaying: PropTypes.func.isRequired,
- currentDate: PropTypes.object,
+ currentDate: PropTypes.shape,
delta: PropTypes.number,
interval: PropTypes.string,
isLoopActive: PropTypes.bool,
onClose: PropTypes.func,
numberOfFrames: PropTypes.number,
- snappedCurrentDate: PropTypes.object,
+ snappedCurrentDate: PropTypes.shape,
isKioskModeActive: PropTypes.bool,
- map: PropTypes.object,
+ map: PropTypes.shape,
};
export default PlayQueue;
diff --git a/web/js/components/charting/chart-component.js b/web/js/components/charting/chart-component.js
index 0e3d6361a..5435318d2 100644
--- a/web/js/components/charting/chart-component.js
+++ b/web/js/components/charting/chart-component.js
@@ -578,10 +578,10 @@ const mapStateToProps = (state) => {
};
ChartComponent.propTypes = {
- liveData: PropTypes.object,
- mapView: PropTypes.object,
+ liveData: PropTypes.shape,
+ mapView: PropTypes.shape,
createLayer: PropTypes.func,
- overviewMapLayerDef: PropTypes.object,
+ overviewMapLayerDef: PropTypes.shape,
};
CustomXAxisTick.propTypes = {
@@ -591,13 +591,13 @@ CustomXAxisTick.propTypes = {
textAnchor: PropTypes.string,
visibleTicksCount: PropTypes.number,
index: PropTypes.number,
- payload: PropTypes.object,
- data: PropTypes.array,
+ payload: PropTypes.shape,
+ data: PropTypes.arrayOf,
};
CustomTooltip.propTypes = {
active: PropTypes.bool,
- payload: PropTypes.array,
+ payload: PropTypes.arrayOf,
label: PropTypes.string,
unit: PropTypes.string,
};
diff --git a/web/js/components/charting/charting-date-selector.js b/web/js/components/charting/charting-date-selector.js
index 7dbc6b8b3..abfc3cb72 100644
--- a/web/js/components/charting/charting-date-selector.js
+++ b/web/js/components/charting/charting-date-selector.js
@@ -90,13 +90,13 @@ const mapDispatchToProps = (dispatch) => ({
});
ChartingDateSelector.propTypes = {
- timeSpanStartDate: PropTypes.object,
- timeSpanEndDate: PropTypes.object,
- layerEndDate: PropTypes.object,
- layerStartDate: PropTypes.object,
+ timeSpanStartDate: PropTypes.shape,
+ timeSpanEndDate: PropTypes.shape,
+ layerEndDate: PropTypes.shape,
+ layerStartDate: PropTypes.shape,
onUpdateStartDate: PropTypes.func,
onUpdateEndDate: PropTypes.func,
- date: PropTypes.object,
+ date: PropTypes.shape,
timeSpanSelection: PropTypes.string,
};
diff --git a/web/js/components/charting/simple-statistics.js b/web/js/components/charting/simple-statistics.js
index c845e9ccf..5f66b4976 100644
--- a/web/js/components/charting/simple-statistics.js
+++ b/web/js/components/charting/simple-statistics.js
@@ -85,7 +85,7 @@ function SimpleStatistics(props) {
}
SimpleStatistics.propTypes = {
- data: PropTypes.object,
+ data: PropTypes.shape,
};
export default SimpleStatistics;
diff --git a/web/js/components/context-menu/context-menu.js b/web/js/components/context-menu/context-menu.js
index f84d13223..02cdab7cf 100644
--- a/web/js/components/context-menu/context-menu.js
+++ b/web/js/components/context-menu/context-menu.js
@@ -178,12 +178,12 @@ const mapDispatchToProps = (dispatch) => ({
},
});
RightClickMenu.propTypes = {
- map: PropTypes.object,
- proj: PropTypes.object,
+ map: PropTypes.shape,
+ proj: PropTypes.shape,
unitOfMeasure: PropTypes.string,
onToggleUnits: PropTypes.func,
isCoordinateSearchActive: PropTypes.bool,
- allMeasurements: PropTypes.object,
+ allMeasurements: PropTypes.shape,
measurementIsActive: PropTypes.bool,
isMobile: PropTypes.bool,
};
diff --git a/web/js/components/date-selector/date-input-column.js b/web/js/components/date-selector/date-input-column.js
index 85c8c87c8..ead82f777 100644
--- a/web/js/components/date-selector/date-input-column.js
+++ b/web/js/components/date-selector/date-input-column.js
@@ -342,7 +342,7 @@ class DateInputColumn extends Component {
}
DateInputColumn.propTypes = {
- date: PropTypes.object,
+ date: PropTypes.shape,
fontSize: PropTypes.number,
idSuffix: PropTypes.string,
isKioskModeActive: PropTypes.bool,
@@ -350,8 +350,8 @@ DateInputColumn.propTypes = {
isStartDate: PropTypes.bool,
isEndDate: PropTypes.bool,
isDisabled: PropTypes.bool,
- maxDate: PropTypes.object,
- minDate: PropTypes.object,
+ maxDate: PropTypes.shape,
+ minDate: PropTypes.shape,
onFocus: PropTypes.func,
subDailyMode: PropTypes.bool,
type: PropTypes.string,
diff --git a/web/js/components/date-selector/date-range-selector.js b/web/js/components/date-selector/date-range-selector.js
index a552adbcb..ed72c2f9c 100644
--- a/web/js/components/date-selector/date-range-selector.js
+++ b/web/js/components/date-selector/date-range-selector.js
@@ -47,10 +47,10 @@ export default function DateRangeSelector (props) {
DateRangeSelector.propTypes = {
idSuffix: PropTypes.string,
isDisabled: PropTypes.bool,
- startDate: PropTypes.object,
- endDate: PropTypes.object,
+ startDate: PropTypes.shape,
+ endDate: PropTypes.shape,
setDateRange: PropTypes.func,
- minDate: PropTypes.object,
- maxDate: PropTypes.object,
+ minDate: PropTypes.shape,
+ maxDate: PropTypes.shape,
subDailyMode: PropTypes.bool,
};
diff --git a/web/js/components/date-selector/date-selector.js b/web/js/components/date-selector/date-selector.js
index 777635bf9..535fb7c92 100644
--- a/web/js/components/date-selector/date-selector.js
+++ b/web/js/components/date-selector/date-selector.js
@@ -376,14 +376,14 @@ DateSelector.defaultProps = {
fontSize: 15,
};
DateSelector.propTypes = {
- date: PropTypes.object,
+ date: PropTypes.shape,
fontSize: PropTypes.number,
idSuffix: PropTypes.string,
isStartDate: PropTypes.bool,
isEndDate: PropTypes.bool,
isDisabled: PropTypes.bool,
- maxDate: PropTypes.object,
- minDate: PropTypes.object,
+ maxDate: PropTypes.shape,
+ minDate: PropTypes.shape,
onDateChange: PropTypes.func,
subDailyMode: PropTypes.bool,
isKioskModeActive: PropTypes.bool,
diff --git a/web/js/components/dateline/datelines.js b/web/js/components/dateline/datelines.js
index 10b1dc47c..93dc42cbf 100644
--- a/web/js/components/dateline/datelines.js
+++ b/web/js/components/dateline/datelines.js
@@ -133,9 +133,9 @@ const mapStateToProps = (state) => {
};
DateLines.propTypes = {
- map: PropTypes.object,
- proj: PropTypes.object,
- date: PropTypes.object,
+ map: PropTypes.shape,
+ proj: PropTypes.shape,
+ date: PropTypes.shape,
isCompareActive: PropTypes.bool,
mapIsRendered: PropTypes.bool,
alwaysShow: PropTypes.bool,
diff --git a/web/js/components/dateline/line.js b/web/js/components/dateline/line.js
index 016b57bdf..c757d6f17 100644
--- a/web/js/components/dateline/line.js
+++ b/web/js/components/dateline/line.js
@@ -139,16 +139,16 @@ export default function Line (props) {
Line.propTypes = {
alwaysShow: PropTypes.bool,
- date: PropTypes.object,
+ date: PropTypes.shape,
height: PropTypes.number,
id: PropTypes.string,
isCompareActive: PropTypes.bool,
lineX: PropTypes.number,
lineY: PropTypes.number,
- map: PropTypes.object,
- style: PropTypes.object,
+ map: PropTypes.shape,
+ style: PropTypes.shape,
setTextCoords: PropTypes.func,
- textCoords: PropTypes.array,
+ textCoords: PropTypes.arrayOf,
hideText: PropTypes.bool,
isMobilePhone: PropTypes.bool,
isMobileTablet: PropTypes.bool,
diff --git a/web/js/components/dateline/text.js b/web/js/components/dateline/text.js
index ba0475879..c32097e9f 100644
--- a/web/js/components/dateline/text.js
+++ b/web/js/components/dateline/text.js
@@ -129,12 +129,12 @@ class LineText extends React.Component {
LineText.propTypes = {
active: PropTypes.bool,
- date: PropTypes.object,
+ date: PropTypes.shape,
x: PropTypes.number,
isCompareActive: PropTypes.bool,
isLeft: PropTypes.bool,
- map: PropTypes.object,
- textCoords: PropTypes.array,
+ map: PropTypes.shape,
+ textCoords: PropTypes.arrayOf,
};
export default LineText;
diff --git a/web/js/components/image-download/global-select.js b/web/js/components/image-download/global-select.js
index 2f25c9e2a..1877f1f9f 100644
--- a/web/js/components/image-download/global-select.js
+++ b/web/js/components/image-download/global-select.js
@@ -43,9 +43,9 @@ function GlobalSelectCheckbox(props) {
}
GlobalSelectCheckbox.propTypes = {
onLatLongChange: PropTypes.func,
- geoLatLong: PropTypes.array,
+ geoLatLong: PropTypes.arrayOf,
proj: PropTypes.string,
- map: PropTypes.object,
+ map: PropTypes.shape,
};
export default GlobalSelectCheckbox;
diff --git a/web/js/components/image-download/image-download-panel.js b/web/js/components/image-download/image-download-panel.js
index 77ad16cc0..0c0b2f574 100644
--- a/web/js/components/image-download/image-download-panel.js
+++ b/web/js/components/image-download/image-download-panel.js
@@ -263,24 +263,24 @@ ImageDownloadPanel.propTypes = {
datelineMessage: PropTypes.string,
fileType: PropTypes.string,
fileTypeOptions: PropTypes.bool,
- fileTypes: PropTypes.object,
+ fileTypes: PropTypes.shape,
firstLabel: PropTypes.string,
getLayers: PropTypes.func,
isWorldfile: PropTypes.bool,
- lonlats: PropTypes.array,
- map: PropTypes.object,
+ lonlats: PropTypes.arrayOf,
+ map: PropTypes.shape,
maxImageSize: PropTypes.string,
- markerCoordinates: PropTypes.array,
+ markerCoordinates: PropTypes.arrayOf,
onPanelChange: PropTypes.func,
- projection: PropTypes.object,
- date: PropTypes.object,
+ projection: PropTypes.shape,
+ date: PropTypes.shape,
resolution: PropTypes.string,
- resolutions: PropTypes.object,
+ resolutions: PropTypes.shape,
secondLabel: PropTypes.string,
url: PropTypes.string,
- viewExtent: PropTypes.array,
+ viewExtent: PropTypes.arrayOf,
worldFileOptions: PropTypes.bool,
- geoLatLong: PropTypes.array,
+ geoLatLong: PropTypes.arrayOf,
onLatLongChange: PropTypes.func,
};
diff --git a/web/js/components/image-download/lat-long-inputs.js b/web/js/components/image-download/lat-long-inputs.js
index 13071a2e6..0cb27b1af 100644
--- a/web/js/components/image-download/lat-long-inputs.js
+++ b/web/js/components/image-download/lat-long-inputs.js
@@ -173,20 +173,20 @@ function LatLongSelect(props) {
export default LatLongSelect;
const {
- number, array, func, string,
+ number, arrayOf, func, string,
} = PropTypes;
LatLongSelect.propTypes = {
onLatLongChange: func,
- geoLatLong: array,
- viewExtent: array,
+ geoLatLong: arrayOf,
+ viewExtent: arrayOf,
crs: string,
};
Input.propTypes = {
onLatLongChange: func,
index: number,
title: string,
- boundingBoxArray: array,
+ boundingBoxArray: arrayOf,
inputNumber: string,
- viewExtent: array,
+ viewExtent: arrayOf,
crs: string,
};
diff --git a/web/js/components/kiosk/animation-tile-check/date-range-tile-check.js b/web/js/components/kiosk/animation-tile-check/date-range-tile-check.js
index 0cf3afeb3..46c967234 100644
--- a/web/js/components/kiosk/animation-tile-check/date-range-tile-check.js
+++ b/web/js/components/kiosk/animation-tile-check/date-range-tile-check.js
@@ -255,10 +255,10 @@ function DateRangeTileCheck(props) {
}
DateRangeTileCheck.propTypes = {
- proj: PropTypes.object,
- config: PropTypes.object,
- activeLayers: PropTypes.array,
- frameDates: PropTypes.array,
+ proj: PropTypes.shape,
+ config: PropTypes.shape,
+ activeLayers: PropTypes.arrayOf,
+ frameDates: PropTypes.arrayOf,
zoom: PropTypes.number,
};
diff --git a/web/js/components/layer/info/date-ranges.js b/web/js/components/layer/info/date-ranges.js
index 77890bf75..1aff6f369 100644
--- a/web/js/components/layer/info/date-ranges.js
+++ b/web/js/components/layer/info/date-ranges.js
@@ -103,5 +103,5 @@ export default function DateRanges ({ layer }) {
}
DateRanges.propTypes = {
- layer: PropTypes.object,
+ layer: PropTypes.shape,
};
diff --git a/web/js/components/layer/info/info.js b/web/js/components/layer/info/info.js
index 37d813d7d..1d9002507 100644
--- a/web/js/components/layer/info/info.js
+++ b/web/js/components/layer/info/info.js
@@ -102,6 +102,6 @@ export default function LayerInfo ({ layer, measurementDescriptionPath }) {
}
LayerInfo.propTypes = {
- layer: PropTypes.object,
+ layer: PropTypes.shape,
measurementDescriptionPath: PropTypes.string,
};
diff --git a/web/js/components/layer/product-picker/browse/browse-layers-list.js b/web/js/components/layer/product-picker/browse/browse-layers-list.js
index 8250a6a52..2b9d6e016 100644
--- a/web/js/components/layer/product-picker/browse/browse-layers-list.js
+++ b/web/js/components/layer/product-picker/browse/browse-layers-list.js
@@ -45,9 +45,9 @@ function BrowseLayerList (props) {
}
BrowseLayerList.propTypes = {
- category: PropTypes.object,
+ category: PropTypes.shape,
hasMeasurementSource: PropTypes.func,
- measurementConfig: PropTypes.object,
+ measurementConfig: PropTypes.shape,
selectedMeasurement: PropTypes.string,
};
diff --git a/web/js/components/layer/product-picker/browse/browse-layers.js b/web/js/components/layer/product-picker/browse/browse-layers.js
index 3abab24ce..8854bcc94 100644
--- a/web/js/components/layer/product-picker/browse/browse-layers.js
+++ b/web/js/components/layer/product-picker/browse/browse-layers.js
@@ -217,13 +217,13 @@ function BrowseLayers (props) {
}
BrowseLayers.propTypes = {
- categoryTabNames: PropTypes.array,
+ categoryTabNames: PropTypes.arrayOf,
categoryType: PropTypes.string,
clearRecentLayers: PropTypes.func,
isMobile: PropTypes.bool,
selectedCategoryName: PropTypes.string,
mode: PropTypes.string,
- recentLayers: PropTypes.array,
+ recentLayers: PropTypes.arrayOf,
selectCategoryType: PropTypes.func,
selectedProjection: PropTypes.string,
toggleMeasurementsTab: PropTypes.func,
diff --git a/web/js/components/layer/product-picker/browse/category-cell.js b/web/js/components/layer/product-picker/browse/category-cell.js
index d87a1863b..ce9e5b352 100644
--- a/web/js/components/layer/product-picker/browse/category-cell.js
+++ b/web/js/components/layer/product-picker/browse/category-cell.js
@@ -104,10 +104,10 @@ function CategoryCell(props) {
}
CategoryCell.propTypes = {
- category: PropTypes.object,
+ category: PropTypes.shape,
drawMeasurements: PropTypes.func,
hasMeasurementSource: PropTypes.func,
- measurementConfig: PropTypes.object,
+ measurementConfig: PropTypes.shape,
};
export default CategoryCell;
diff --git a/web/js/components/layer/product-picker/browse/category-grid.js b/web/js/components/layer/product-picker/browse/category-grid.js
index add7195c7..4646cfc5f 100644
--- a/web/js/components/layer/product-picker/browse/category-grid.js
+++ b/web/js/components/layer/product-picker/browse/category-grid.js
@@ -84,11 +84,11 @@ function mapStateToProps(state) {
}
CategoryGrid.propTypes = {
- categories: PropTypes.array,
+ categories: PropTypes.arrayOf,
categoryType: PropTypes.string,
showMeasurements: PropTypes.func,
hasMeasurementSource: PropTypes.func,
- measurementConfig: PropTypes.object,
+ measurementConfig: PropTypes.shape,
};
export default connect(
diff --git a/web/js/components/layer/product-picker/browse/category-layer-row.js b/web/js/components/layer/product-picker/browse/category-layer-row.js
index 6511f3ad0..208e307ed 100644
--- a/web/js/components/layer/product-picker/browse/category-layer-row.js
+++ b/web/js/components/layer/product-picker/browse/category-layer-row.js
@@ -228,20 +228,20 @@ class CategoryLayerRow extends React.Component {
}
CategoryLayerRow.propTypes = {
- category: PropTypes.object,
+ category: PropTypes.shape,
categoryType: PropTypes.string,
hasMeasurementSetting: PropTypes.func,
id: PropTypes.string,
isMobile: PropTypes.bool,
isSelected: PropTypes.bool,
- layerConfig: PropTypes.object,
- measurement: PropTypes.object,
+ layerConfig: PropTypes.shape,
+ measurement: PropTypes.shape,
projection: PropTypes.string,
selectSource: PropTypes.func,
selectMeasurement: PropTypes.func,
selectedMeasurement: PropTypes.string,
selectedMeasurementSourceIndex: PropTypes.number,
- sources: PropTypes.array,
+ sources: PropTypes.arrayOf,
};
const mapStateToProps = (state) => {
diff --git a/web/js/components/layer/product-picker/browse/measurement-layer-row.js b/web/js/components/layer/product-picker/browse/measurement-layer-row.js
index 1724f60ed..67b680d09 100644
--- a/web/js/components/layer/product-picker/browse/measurement-layer-row.js
+++ b/web/js/components/layer/product-picker/browse/measurement-layer-row.js
@@ -93,11 +93,11 @@ MeasurementLayerRow.propTypes = {
addLayer: PropTypes.func,
isEnabled: PropTypes.bool,
isMobile: PropTypes.bool,
- layer: PropTypes.object,
+ layer: PropTypes.shape,
layerNotices: PropTypes.string,
measurementId: PropTypes.string,
removeLayer: PropTypes.func,
- selectedDate: PropTypes.object,
+ selectedDate: PropTypes.shape,
title: PropTypes.string,
};
diff --git a/web/js/components/layer/product-picker/browse/measurement-metadata-detail.js b/web/js/components/layer/product-picker/browse/measurement-metadata-detail.js
index 1ba16526a..3a76df36a 100644
--- a/web/js/components/layer/product-picker/browse/measurement-metadata-detail.js
+++ b/web/js/components/layer/product-picker/browse/measurement-metadata-detail.js
@@ -148,8 +148,8 @@ function MeasurementMetadataDetail (props) {
MeasurementMetadataDetail.propTypes = {
categoryTitle: PropTypes.string,
isMobile: PropTypes.bool,
- layers: PropTypes.array,
- source: PropTypes.object,
+ layers: PropTypes.arrayOf,
+ source: PropTypes.shape,
showPreviewImage: PropTypes.bool,
selectedProjection: PropTypes.string,
};
diff --git a/web/js/components/layer/product-picker/browse/recent-layers.js b/web/js/components/layer/product-picker/browse/recent-layers.js
index 27040a48c..2aab9a3d3 100644
--- a/web/js/components/layer/product-picker/browse/recent-layers.js
+++ b/web/js/components/layer/product-picker/browse/recent-layers.js
@@ -71,9 +71,9 @@ function RecentLayersList(props) {
RecentLayersList.propTypes = {
clearRecentLayers: PropTypes.func,
isMobile: PropTypes.bool,
- selectedLayer: PropTypes.object,
+ selectedLayer: PropTypes.shape,
smallView: PropTypes.bool,
- recentLayers: PropTypes.array,
+ recentLayers: PropTypes.arrayOf,
};
const mapStateToProps = (state) => {
diff --git a/web/js/components/layer/product-picker/header.js b/web/js/components/layer/product-picker/header.js
index b6508109f..034b55753 100644
--- a/web/js/components/layer/product-picker/header.js
+++ b/web/js/components/layer/product-picker/header.js
@@ -231,17 +231,17 @@ class ProductPickerHeader extends React.Component {
}
ProductPickerHeader.propTypes = {
- category: PropTypes.object,
+ category: PropTypes.shape,
categoryType: PropTypes.string,
- filters: PropTypes.array,
+ filters: PropTypes.arrayOf,
isMobile: PropTypes.bool,
layerCount: PropTypes.number,
mode: PropTypes.string,
- results: PropTypes.array,
+ results: PropTypes.arrayOf,
saveSearchState: PropTypes.func,
- searchConfig: PropTypes.object,
+ searchConfig: PropTypes.shape,
setSearchTerm: PropTypes.func,
- selectedLayer: PropTypes.object,
+ selectedLayer: PropTypes.shape,
selectedProjection: PropTypes.string,
searchTerm: PropTypes.string,
showMobileFacets: PropTypes.bool,
diff --git a/web/js/components/layer/product-picker/product-picker.js b/web/js/components/layer/product-picker/product-picker.js
index be24aa767..85d2825bf 100644
--- a/web/js/components/layer/product-picker/product-picker.js
+++ b/web/js/components/layer/product-picker/product-picker.js
@@ -109,7 +109,7 @@ class ProductPicker extends React.Component {
ProductPicker.propTypes = {
categoryType: PropTypes.string,
closeModal: PropTypes.func,
- filters: PropTypes.array,
+ filters: PropTypes.arrayOf,
mode: PropTypes.string,
saveSearchState: PropTypes.func,
searchTerm: PropTypes.string,
diff --git a/web/js/components/layer/product-picker/renderSplitTitle.js b/web/js/components/layer/product-picker/renderSplitTitle.js
index 6707e6b79..f712f66a1 100644
--- a/web/js/components/layer/product-picker/renderSplitTitle.js
+++ b/web/js/components/layer/product-picker/renderSplitTitle.js
@@ -42,5 +42,5 @@ export default function RenderSplitLayerTitle(props) {
}
RenderSplitLayerTitle.propTypes = {
- layer: PropTypes.object,
+ layer: PropTypes.shape,
};
diff --git a/web/js/components/layer/product-picker/search-ui-provider.js b/web/js/components/layer/product-picker/search-ui-provider.js
index 51d0664cf..6e6eccc12 100644
--- a/web/js/components/layer/product-picker/search-ui-provider.js
+++ b/web/js/components/layer/product-picker/search-ui-provider.js
@@ -28,7 +28,7 @@ class SearchUiProvider extends React.Component {
SearchUiProvider.propTypes = {
initState: PropTypes.func,
- searchConfig: PropTypes.object,
+ searchConfig: PropTypes.shape,
};
const mapDispatchToProps = (dispatch) => ({
diff --git a/web/js/components/layer/product-picker/search/facets.js b/web/js/components/layer/product-picker/search/facets.js
index b446a9e92..b3507d034 100644
--- a/web/js/components/layer/product-picker/search/facets.js
+++ b/web/js/components/layer/product-picker/search/facets.js
@@ -70,14 +70,14 @@ function Facets(props) {
}
Facets.propTypes = {
- collapsedFacets: PropTypes.object,
- facets: PropTypes.object,
- filters: PropTypes.array,
+ collapsedFacets: PropTypes.shape,
+ facets: PropTypes.shape,
+ filters: PropTypes.arrayOf,
isMobile: PropTypes.bool,
- breakpoints: PropTypes.object,
+ breakpoints: PropTypes.shape,
screenWidth: PropTypes.number,
removeFilter: PropTypes.func,
- results: PropTypes.array,
+ results: PropTypes.arrayOf,
showMobileFacets: PropTypes.bool,
toggleCollapseFacet: PropTypes.func,
toggleMobileFacets: PropTypes.func,
diff --git a/web/js/components/layer/product-picker/search/filter-chips.js b/web/js/components/layer/product-picker/search/filter-chips.js
index 06d145f29..55fb83053 100644
--- a/web/js/components/layer/product-picker/search/filter-chips.js
+++ b/web/js/components/layer/product-picker/search/filter-chips.js
@@ -41,7 +41,7 @@ export default function FilterChips(props) {
}
FilterChips.propTypes = {
- filters: PropTypes.array,
+ filters: PropTypes.arrayOf,
removeFilter: PropTypes.func,
- facetConfig: PropTypes.array,
+ facetConfig: PropTypes.arrayOf,
};
diff --git a/web/js/components/layer/product-picker/search/layer-metadata-detail.js b/web/js/components/layer/product-picker/search/layer-metadata-detail.js
index 7b0ce7342..b1c80f504 100644
--- a/web/js/components/layer/product-picker/search/layer-metadata-detail.js
+++ b/web/js/components/layer/product-picker/search/layer-metadata-detail.js
@@ -90,7 +90,7 @@ LayerMetadataDetail.propTypes = {
addLayer: PropTypes.func,
categoryType: PropTypes.string,
isActive: PropTypes.bool,
- layer: PropTypes.object,
+ layer: PropTypes.shape,
measurementDescriptionPath: PropTypes.string,
removeLayer: PropTypes.func,
selectedProjection: PropTypes.string,
diff --git a/web/js/components/layer/product-picker/search/product-facet.js b/web/js/components/layer/product-picker/search/product-facet.js
index 9f8205228..4a7458519 100644
--- a/web/js/components/layer/product-picker/search/product-facet.js
+++ b/web/js/components/layer/product-picker/search/product-facet.js
@@ -83,9 +83,9 @@ function ProductFacet(props) {
}
ProductFacet.propTypes = {
- config: PropTypes.object,
+ config: PropTypes.shape,
collapsed: PropTypes.bool,
- data: PropTypes.array,
+ data: PropTypes.arrayOf,
toggleCollapse: PropTypes.func,
};
diff --git a/web/js/components/layer/product-picker/search/search-layer-row.js b/web/js/components/layer/product-picker/search/search-layer-row.js
index 321443b31..92bf47b66 100644
--- a/web/js/components/layer/product-picker/search/search-layer-row.js
+++ b/web/js/components/layer/product-picker/search/search-layer-row.js
@@ -210,11 +210,11 @@ SearchLayerRow.propTypes = {
clearSingleRecentLayer: PropTypes.func,
isEnabled: PropTypes.bool,
isMobile: PropTypes.bool,
- layer: PropTypes.object,
+ layer: PropTypes.shape,
layerNotices: PropTypes.string,
removeLayer: PropTypes.func,
scrollIntoView: PropTypes.bool,
- selectedLayer: PropTypes.object,
+ selectedLayer: PropTypes.shape,
showLayerMetadata: PropTypes.func,
};
diff --git a/web/js/components/layer/product-picker/search/search-layers-list.js b/web/js/components/layer/product-picker/search/search-layers-list.js
index a67bf06cc..0f0ad71fa 100644
--- a/web/js/components/layer/product-picker/search/search-layers-list.js
+++ b/web/js/components/layer/product-picker/search/search-layers-list.js
@@ -183,9 +183,9 @@ class SearchLayerList extends React.Component {
SearchLayerList.propTypes = {
clearSingleRecentLayer: PropTypes.func,
isMobile: PropTypes.bool,
- results: PropTypes.array,
+ results: PropTypes.arrayOf,
recentLayerMode: PropTypes.bool,
- selectedLayer: PropTypes.object,
+ selectedLayer: PropTypes.shape,
selectLayer: PropTypes.func,
};
diff --git a/web/js/components/layer/product-picker/search/search-layers.js b/web/js/components/layer/product-picker/search/search-layers.js
index c27f2be58..45f553c7e 100644
--- a/web/js/components/layer/product-picker/search/search-layers.js
+++ b/web/js/components/layer/product-picker/search/search-layers.js
@@ -43,8 +43,8 @@ SearchLayers.propTypes = {
width: PropTypes.number,
isMobile: PropTypes.bool,
mediumBreakpoint: PropTypes.number,
- results: PropTypes.array,
- selectedLayer: PropTypes.object,
+ results: PropTypes.arrayOf,
+ selectedLayer: PropTypes.shape,
smallView: PropTypes.bool,
showMobileFacets: PropTypes.bool,
};
diff --git a/web/js/components/layer/settings/associated-layers-toggle.js b/web/js/components/layer/settings/associated-layers-toggle.js
index 360a85119..f3666fd08 100644
--- a/web/js/components/layer/settings/associated-layers-toggle.js
+++ b/web/js/components/layer/settings/associated-layers-toggle.js
@@ -77,8 +77,8 @@ export default connect(
)(AssociatedLayersToggle);
AssociatedLayersToggle.propTypes = {
- activeLayers: PropTypes.object,
+ activeLayers: PropTypes.shape,
addLayer: PropTypes.func,
removeLayer: PropTypes.func,
- associatedLayers: PropTypes.array,
+ associatedLayers: PropTypes.arrayOf,
};
diff --git a/web/js/components/layer/settings/band-selection/band-selection-menu.js b/web/js/components/layer/settings/band-selection/band-selection-menu.js
index bbe570504..f46c4c91b 100644
--- a/web/js/components/layer/settings/band-selection/band-selection-menu.js
+++ b/web/js/components/layer/settings/band-selection/band-selection-menu.js
@@ -131,5 +131,5 @@ export default function BandSelection({ layer }) {
}
BandSelection.propTypes = {
- layer: PropTypes.object,
+ layer: PropTypes.shape,
};
diff --git a/web/js/components/layer/settings/band-selection/band-selection-parent-info-menu.js b/web/js/components/layer/settings/band-selection/band-selection-parent-info-menu.js
index afc80b4f8..cfdcd3bfc 100644
--- a/web/js/components/layer/settings/band-selection/band-selection-parent-info-menu.js
+++ b/web/js/components/layer/settings/band-selection/band-selection-parent-info-menu.js
@@ -99,5 +99,5 @@ export default function BandSelectionParentInfoMenu({ layer }) {
}
BandSelectionParentInfoMenu.propTypes = {
- layer: PropTypes.object,
+ layer: PropTypes.shape,
};
diff --git a/web/js/components/layer/settings/band-selection/menu-components/band-dropdown.js b/web/js/components/layer/settings/band-selection/menu-components/band-dropdown.js
index 895913896..6d7261d90 100644
--- a/web/js/components/layer/settings/band-selection/menu-components/band-dropdown.js
+++ b/web/js/components/layer/settings/band-selection/menu-components/band-dropdown.js
@@ -46,8 +46,8 @@ export default function BandsDropdown(props) {
BandsDropdown.propTypes = {
channel: PropTypes.string,
- bandSelection: PropTypes.object,
+ bandSelection: PropTypes.shape,
setBandSelection: PropTypes.func,
- layer: PropTypes.object,
+ layer: PropTypes.shape,
setSelectedPreset: PropTypes.func,
};
diff --git a/web/js/components/layer/settings/band-selection/menu-components/preset-options.js b/web/js/components/layer/settings/band-selection/menu-components/preset-options.js
index 6e37e0ea7..d17129a1d 100644
--- a/web/js/components/layer/settings/band-selection/menu-components/preset-options.js
+++ b/web/js/components/layer/settings/band-selection/menu-components/preset-options.js
@@ -349,7 +349,7 @@ export default function PresetOptions(props) {
PresetOptions.propTypes = {
setBandSelection: PropTypes.func,
- selectedPreset: PropTypes.object,
+ selectedPreset: PropTypes.shape,
setSelectedPreset: PropTypes.func,
presetOptions: PropTypes.string,
};
diff --git a/web/js/components/layer/settings/classification-toggle.js b/web/js/components/layer/settings/classification-toggle.js
index 04013199b..6b57cb412 100644
--- a/web/js/components/layer/settings/classification-toggle.js
+++ b/web/js/components/layer/settings/classification-toggle.js
@@ -59,8 +59,8 @@ export default function ClassificationToggle(props) {
ClassificationToggle.propTypes = {
height: PropTypes.number,
- legend: PropTypes.object,
- palette: PropTypes.object,
+ legend: PropTypes.shape,
+ palette: PropTypes.shape,
toggle: PropTypes.func,
toggleAll: PropTypes.func,
};
diff --git a/web/js/components/layer/settings/granule-count-slider.js b/web/js/components/layer/settings/granule-count-slider.js
index 633ddb2c4..fa0211e0f 100644
--- a/web/js/components/layer/settings/granule-count-slider.js
+++ b/web/js/components/layer/settings/granule-count-slider.js
@@ -62,8 +62,8 @@ GranuleCountSlider.defaultProps = {
count: DEFAULT_NUM_GRANULES,
};
GranuleCountSlider.propTypes = {
- granuleDates: PropTypes.array,
- def: PropTypes.object,
+ granuleDates: PropTypes.arrayOf,
+ def: PropTypes.shape,
count: PropTypes.number,
granulePlatform: PropTypes.string,
updateGranuleLayerOptions: PropTypes.func,
diff --git a/web/js/components/layer/settings/granule-date-list.js b/web/js/components/layer/settings/granule-date-list.js
index a2541ca82..7bd47ae6c 100644
--- a/web/js/components/layer/settings/granule-date-list.js
+++ b/web/js/components/layer/settings/granule-date-list.js
@@ -299,9 +299,9 @@ class GranuleDateList extends PureComponent {
}
GranuleDateList.propTypes = {
- def: PropTypes.object,
+ def: PropTypes.shape,
granuleCount: PropTypes.number,
- granuleDates: PropTypes.array,
+ granuleDates: PropTypes.arrayOf,
resetGranuleLayerDates: PropTypes.func,
granulePlatform: PropTypes.string,
screenHeight: PropTypes.number,
diff --git a/web/js/components/layer/settings/imagery-search.js b/web/js/components/layer/settings/imagery-search.js
index f578134a0..9bdabe9a7 100644
--- a/web/js/components/layer/settings/imagery-search.js
+++ b/web/js/components/layer/settings/imagery-search.js
@@ -173,5 +173,5 @@ export default function ImagerySearch({ layer }) {
}
ImagerySearch.propTypes = {
- layer: PropTypes.object,
+ layer: PropTypes.shape,
};
diff --git a/web/js/components/layer/settings/layer-settings.js b/web/js/components/layer/settings/layer-settings.js
index 3aa6cb6f7..30d03fef8 100644
--- a/web/js/components/layer/settings/layer-settings.js
+++ b/web/js/components/layer/settings/layer-settings.js
@@ -447,12 +447,12 @@ LayerSettings.propTypes = {
getPalette: PropTypes.func,
getPaletteLegend: PropTypes.func,
getPaletteLegends: PropTypes.func,
- granuleOptions: PropTypes.object,
+ granuleOptions: PropTypes.shape,
globalTemperatureUnit: PropTypes.string,
groupName: PropTypes.string,
- layer: PropTypes.object,
+ layer: PropTypes.shape,
palettedAllowed: PropTypes.bool,
- paletteOrder: PropTypes.array,
+ paletteOrder: PropTypes.arrayOf,
palettesTranslate: PropTypes.func,
resetGranuleLayerDates: PropTypes.func,
screenHeight: PropTypes.number,
@@ -462,5 +462,5 @@ LayerSettings.propTypes = {
toggleClassification: PropTypes.func,
updateGranuleLayerOptions: PropTypes.func,
toggleAllClassifications: PropTypes.func,
- zot: PropTypes.object,
+ zot: PropTypes.shape,
};
diff --git a/web/js/components/layer/settings/opacity.js b/web/js/components/layer/settings/opacity.js
index 49bdb9eb8..2d524b654 100644
--- a/web/js/components/layer/settings/opacity.js
+++ b/web/js/components/layer/settings/opacity.js
@@ -43,7 +43,7 @@ OpacitySelect.defaultProps = {
start: 100,
};
OpacitySelect.propTypes = {
- layer: PropTypes.object,
+ layer: PropTypes.shape,
setOpacity: PropTypes.func,
start: PropTypes.number,
};
diff --git a/web/js/components/layer/settings/palette-threshold.js b/web/js/components/layer/settings/palette-threshold.js
index e8e2aa9c0..d96dcb9f7 100644
--- a/web/js/components/layer/settings/palette-threshold.js
+++ b/web/js/components/layer/settings/palette-threshold.js
@@ -218,11 +218,11 @@ PaletteThreshold.propTypes = {
groupName: PropTypes.string,
index: PropTypes.number,
layerId: PropTypes.string,
- legend: PropTypes.object,
+ legend: PropTypes.shape,
globalTemperatureUnit: PropTypes.string,
max: PropTypes.number,
min: PropTypes.number,
- palette: PropTypes.object,
+ palette: PropTypes.shape,
setRange: PropTypes.func,
squashed: PropTypes.bool,
start: PropTypes.number,
diff --git a/web/js/components/layer/settings/palette.js b/web/js/components/layer/settings/palette.js
index 47cac3b0e..69d497450 100644
--- a/web/js/components/layer/settings/palette.js
+++ b/web/js/components/layer/settings/palette.js
@@ -191,14 +191,14 @@ function PaletteSelect (props) {
PaletteSelect.propTypes = {
activePalette: PropTypes.string,
- canvas: PropTypes.object,
+ canvas: PropTypes.shape,
clearCustomPalette: PropTypes.func,
getCustomPalette: PropTypes.func,
getDefaultLegend: PropTypes.func,
groupName: PropTypes.string,
index: PropTypes.number,
- layer: PropTypes.object,
- paletteOrder: PropTypes.array,
+ layer: PropTypes.shape,
+ paletteOrder: PropTypes.arrayOf,
palettesTranslate: PropTypes.func,
setCustomPalette: PropTypes.func,
};
diff --git a/web/js/components/layer/settings/vector-style.js b/web/js/components/layer/settings/vector-style.js
index 3463d1e65..b9a2849e2 100644
--- a/web/js/components/layer/settings/vector-style.js
+++ b/web/js/components/layer/settings/vector-style.js
@@ -180,9 +180,9 @@ VectorStyleSelect.propTypes = {
clearStyle: PropTypes.func,
groupName: PropTypes.string,
index: PropTypes.number,
- layer: PropTypes.object,
+ layer: PropTypes.shape,
setStyle: PropTypes.func,
- vectorStyles: PropTypes.object,
+ vectorStyles: PropTypes.shape,
};
export default VectorStyleSelect;
diff --git a/web/js/components/location-search/coordinates-dialog.js b/web/js/components/location-search/coordinates-dialog.js
index fdc41c5d6..6dc106b10 100644
--- a/web/js/components/location-search/coordinates-dialog.js
+++ b/web/js/components/location-search/coordinates-dialog.js
@@ -209,7 +209,7 @@ CoordinatesDialog.propTypes = {
removeMarker: PropTypes.func,
removeCoordinatesDialog: PropTypes.func,
title: PropTypes.string,
- coordinates: PropTypes.array,
+ coordinates: PropTypes.arrayOf,
isMobile: PropTypes.bool,
tooltipId: PropTypes.string,
};
diff --git a/web/js/components/location-search/location-marker.js b/web/js/components/location-search/location-marker.js
index 1bedc5942..f7fc59d38 100644
--- a/web/js/components/location-search/location-marker.js
+++ b/web/js/components/location-search/location-marker.js
@@ -58,9 +58,9 @@ export default function LocationMarker ({
}
LocationMarker.propTypes = {
- reverseGeocodeResults: PropTypes.object,
+ reverseGeocodeResults: PropTypes.shape,
isMobile: PropTypes.bool,
- coordinatesObject: PropTypes.object,
+ coordinatesObject: PropTypes.shape,
removeMarker: PropTypes.func,
dialogVisible: PropTypes.bool,
};
diff --git a/web/js/components/location-search/location-search-input.js b/web/js/components/location-search/location-search-input.js
index 3c1bb63ce..0cde9d7fa 100644
--- a/web/js/components/location-search/location-search-input.js
+++ b/web/js/components/location-search/location-search-input.js
@@ -255,7 +255,7 @@ class SearchBox extends Component {
SearchBox.propTypes = {
activeAlert: PropTypes.bool,
clearInput: PropTypes.func,
- coordinatesPending: PropTypes.array,
+ coordinatesPending: PropTypes.arrayOf,
locationSearchMobileModalOpen: PropTypes.bool,
inputValue: PropTypes.string,
isMobile: PropTypes.bool,
@@ -263,7 +263,7 @@ SearchBox.propTypes = {
onChange: PropTypes.func,
onCoordinateInputSelect: PropTypes.func,
onSelect: PropTypes.func,
- suggestions: PropTypes.array,
+ suggestions: PropTypes.arrayOf,
};
export default SearchBox;
diff --git a/web/js/components/location-search/location-search-modal.js b/web/js/components/location-search/location-search-modal.js
index 4dd51b243..da978be04 100644
--- a/web/js/components/location-search/location-search-modal.js
+++ b/web/js/components/location-search/location-search-modal.js
@@ -460,8 +460,8 @@ const mapDispatchToProps = (dispatch) => ({
LocationSearchModal.propTypes = {
clearSuggestions: PropTypes.func,
- coordinates: PropTypes.array,
- coordinatesPending: PropTypes.array,
+ coordinates: PropTypes.arrayOf,
+ coordinatesPending: PropTypes.arrayOf,
locationSearchMobileModalOpen: PropTypes.bool,
getSuggestions: PropTypes.func,
inputValue: PropTypes.string,
@@ -473,8 +473,8 @@ LocationSearchModal.propTypes = {
reverseGeocode: PropTypes.func,
setPlaceMarker: PropTypes.func,
setSuggestion: PropTypes.func,
- suggestions: PropTypes.array,
- suggestedPlace: PropTypes.array,
+ suggestions: PropTypes.arrayOf,
+ suggestedPlace: PropTypes.arrayOf,
toggleReverseGeocodeActive: PropTypes.func,
toggleShowLocationSearch: PropTypes.func,
updatePendingCoordinates: PropTypes.func,
diff --git a/web/js/components/location-search/ol-coordinates-marker.js b/web/js/components/location-search/ol-coordinates-marker.js
index 660165ae8..c3cb4282c 100644
--- a/web/js/components/location-search/ol-coordinates-marker.js
+++ b/web/js/components/location-search/ol-coordinates-marker.js
@@ -131,11 +131,11 @@ const mapDispatchToProps = (dispatch) => ({
},
});
CoordinatesMarker.propTypes = {
- config: PropTypes.object.isRequired,
+ config: PropTypes.shape.isRequired,
isCoordinateSearchActive: PropTypes.bool.isRequired,
setPlaceMarker: PropTypes.func.isRequired,
toggleReverseGeocodeActive: PropTypes.func.isRequired,
- proj: PropTypes.object,
+ proj: PropTypes.shape,
};
export default connect(
mapStateToProps,
diff --git a/web/js/components/map/ol-measure-tool.js b/web/js/components/map/ol-measure-tool.js
index 335faec93..2d72f8302 100644
--- a/web/js/components/map/ol-measure-tool.js
+++ b/web/js/components/map/ol-measure-tool.js
@@ -358,14 +358,14 @@ function OlMeasureTool (props) {
}
OlMeasureTool.propTypes = {
- map: PropTypes.object,
- olMap: PropTypes.object,
+ map: PropTypes.shape,
+ olMap: PropTypes.shape,
crs: PropTypes.string,
toggleMeasureActive: PropTypes.func,
unitOfMeasure: PropTypes.string,
updateMeasurements: PropTypes.func,
- projections: PropTypes.array,
- proj: PropTypes.object,
+ projections: PropTypes.arrayOf,
+ proj: PropTypes.shape,
};
const mapDispatchToProps = (dispatch) => ({
diff --git a/web/js/components/map/zoom.js b/web/js/components/map/zoom.js
index 7ea422fdd..593082004 100644
--- a/web/js/components/map/zoom.js
+++ b/web/js/components/map/zoom.js
@@ -71,7 +71,7 @@ const mapStateToProps = (state) => {
};
Zoom.propTypes = {
- map: PropTypes.object,
+ map: PropTypes.shape,
isDistractionFreeModeActive: PropTypes.bool,
isMobile: PropTypes.bool,
isChartingActive: PropTypes.bool,
diff --git a/web/js/components/measure-tool/measure-tooltip.js b/web/js/components/measure-tool/measure-tooltip.js
index 4657a4a57..9d3d21d0e 100644
--- a/web/js/components/measure-tool/measure-tooltip.js
+++ b/web/js/components/measure-tool/measure-tooltip.js
@@ -148,8 +148,8 @@ MeasureTooltip.defaultProps = {
MeasureTooltip.propTypes = {
active: PropTypes.bool,
crs: PropTypes.string,
- geometry: PropTypes.object,
+ geometry: PropTypes.shape,
onRemove: PropTypes.func,
unitOfMeasure: PropTypes.string,
- proj: PropTypes.object,
+ proj: PropTypes.shape,
};
diff --git a/web/js/components/notifications/notification-block.js b/web/js/components/notifications/notification-block.js
index 4ff75eede..4c5f2d91a 100644
--- a/web/js/components/notifications/notification-block.js
+++ b/web/js/components/notifications/notification-block.js
@@ -40,7 +40,7 @@ function NotificationBlock(props) {
export default NotificationBlock;
NotificationBlock.propTypes = {
- arr: PropTypes.array.isRequired,
+ arr: PropTypes.arrayOf.isRequired,
numberNotSeen: PropTypes.number.isRequired,
type: PropTypes.string.isRequired,
};
diff --git a/web/js/components/range-selection/dragger-range.js b/web/js/components/range-selection/dragger-range.js
index fb9a5c27c..5af689c67 100644
--- a/web/js/components/range-selection/dragger-range.js
+++ b/web/js/components/range-selection/dragger-range.js
@@ -243,9 +243,9 @@ TimelineDraggerRange.propTypes = {
deltaStart: PropTypes.number,
draggerID: PropTypes.string,
endLocation: PropTypes.number,
- endLocationDate: PropTypes.object,
+ endLocationDate: PropTypes.shape,
height: PropTypes.number,
- max: PropTypes.object,
+ max: PropTypes.shape,
onDrag: PropTypes.func,
onStop: PropTypes.func,
opacity: PropTypes.number,
diff --git a/web/js/components/range-selection/range-selection.js b/web/js/components/range-selection/range-selection.js
index 2daf1ff8d..2f7a8fa79 100644
--- a/web/js/components/range-selection/range-selection.js
+++ b/web/js/components/range-selection/range-selection.js
@@ -353,17 +353,17 @@ TimelineRangeSelector.propTypes = {
axisWidth: PropTypes.number,
endColor: PropTypes.string,
endLocation: PropTypes.number,
- endLocationDate: PropTypes.object,
+ endLocationDate: PropTypes.shape,
endTriangleColor: PropTypes.string,
frontDate: PropTypes.string,
- max: PropTypes.object,
+ max: PropTypes.shape,
pinWidth: PropTypes.number,
position: PropTypes.number,
rangeColor: PropTypes.string,
rangeOpacity: PropTypes.number,
startColor: PropTypes.string,
startLocation: PropTypes.number,
- startLocationDate: PropTypes.object,
+ startLocationDate: PropTypes.shape,
startTriangleColor: PropTypes.string,
timelineEndDateLimit: PropTypes.string,
timelineStartDateLimit: PropTypes.string,
diff --git a/web/js/components/sidebar/charting-mode-options.js b/web/js/components/sidebar/charting-mode-options.js
index 74e5f2c2c..ce3ae5298 100644
--- a/web/js/components/sidebar/charting-mode-options.js
+++ b/web/js/components/sidebar/charting-mode-options.js
@@ -1003,12 +1003,12 @@ export default connect(
)(ChartingModeOptions);
ChartingModeOptions.propTypes = {
- activeLayers: PropTypes.array,
+ activeLayers: PropTypes.arrayOf,
activeLayer: PropTypes.string,
isChartingActive: PropTypes.bool,
isMobile: PropTypes.bool,
chartRequestInProgress: PropTypes.bool,
- aoiCoordinates: PropTypes.array,
+ aoiCoordinates: PropTypes.arrayOf,
timeSpanSelection: PropTypes.string,
timeSpanStartDate: PropTypes.instanceOf(Date),
timeSpanEndDate: PropTypes.instanceOf(Date),
@@ -1021,10 +1021,10 @@ ChartingModeOptions.propTypes = {
displaySimpleStats: PropTypes.func,
displayChart: PropTypes.func,
openChartingErrorModal: PropTypes.func,
- olMap: PropTypes.object,
+ olMap: PropTypes.shape,
crs: PropTypes.string,
- renderedPalettes: PropTypes.object,
- projections: PropTypes.array,
+ renderedPalettes: PropTypes.shape,
+ projections: PropTypes.arrayOf,
aoiActive: PropTypes.bool,
timelineStartDate: PropTypes.instanceOf(Date),
timelineEndDate: PropTypes.instanceOf(Date),
@@ -1033,9 +1033,9 @@ ChartingModeOptions.propTypes = {
isModalOpen: PropTypes.bool,
modalId: PropTypes.string,
sidebarHeight: PropTypes.number,
- viewExtent: PropTypes.array,
- maxExtent: PropTypes.array,
- date: PropTypes.object,
+ viewExtent: PropTypes.arrayOf,
+ maxExtent: PropTypes.arrayOf,
+ date: PropTypes.shape,
screenHeight: PropTypes.number,
screenWidth: PropTypes.number,
onUpdateStartDate: PropTypes.func,
diff --git a/web/js/components/sidebar/event.js b/web/js/components/sidebar/event.js
index c84099e73..91e3e5fa0 100644
--- a/web/js/components/sidebar/event.js
+++ b/web/js/components/sidebar/event.js
@@ -222,16 +222,16 @@ function Event (props) {
Event.propTypes = {
defaultEventLayer: PropTypes.string,
deselectEvent: PropTypes.func,
- event: PropTypes.object,
- eventLayers: PropTypes.array,
+ event: PropTypes.shape,
+ eventLayers: PropTypes.arrayOf,
highlightEvent: PropTypes.func,
isSelected: PropTypes.bool,
isHighlighted: PropTypes.bool,
- layers: PropTypes.array,
+ layers: PropTypes.arrayOf,
removeGroup: PropTypes.func,
selectedDate: PropTypes.string,
selectEvent: PropTypes.func,
- sources: PropTypes.array,
+ sources: PropTypes.arrayOf,
toggleGroupVisibility: PropTypes.func,
toggleVisibility: PropTypes.func,
unHighlightEvent: PropTypes.func,
diff --git a/web/js/components/sidebar/events-filter.js b/web/js/components/sidebar/events-filter.js
index 76a47f925..975845b61 100644
--- a/web/js/components/sidebar/events-filter.js
+++ b/web/js/components/sidebar/events-filter.js
@@ -202,10 +202,10 @@ function EventFilterModalBody (props) {
EventFilterModalBody.propTypes = {
closeModal: PropTypes.func,
- eventCategories: PropTypes.array,
+ eventCategories: PropTypes.arrayOf,
isPolarProj: PropTypes.bool,
parentId: PropTypes.string,
- selectedCategories: PropTypes.array,
+ selectedCategories: PropTypes.arrayOf,
selectedStartDate: PropTypes.string,
selectedEndDate: PropTypes.string,
setFilter: PropTypes.func,
diff --git a/web/js/components/sidebar/nav/nav-case.js b/web/js/components/sidebar/nav/nav-case.js
index fb3daacc5..dc154fb17 100644
--- a/web/js/components/sidebar/nav/nav-case.js
+++ b/web/js/components/sidebar/nav/nav-case.js
@@ -132,7 +132,7 @@ NavCase.propTypes = {
isDataDisabled: PropTypes.bool,
isMobile: PropTypes.bool,
onTabClick: PropTypes.func,
- tabTypes: PropTypes.object,
+ tabTypes: PropTypes.shape,
toggleSidebar: PropTypes.func,
};
diff --git a/web/js/components/sidebar/paletteLegend.js b/web/js/components/sidebar/paletteLegend.js
index 3dbb42998..65e29c12b 100644
--- a/web/js/components/sidebar/paletteLegend.js
+++ b/web/js/components/sidebar/paletteLegend.js
@@ -494,12 +494,12 @@ PaletteLegend.propTypes = {
isDistractionFreeModeActive: PropTypes.bool,
isMobile: PropTypes.bool,
isRunningData: PropTypes.bool,
- layer: PropTypes.object,
+ layer: PropTypes.shape,
compareState: PropTypes.string,
paletteId: PropTypes.string,
- paletteLegends: PropTypes.array,
- palettes: PropTypes.object,
- parentLayer: PropTypes.object,
+ paletteLegends: PropTypes.arrayOf,
+ palettes: PropTypes.shape,
+ parentLayer: PropTypes.shape,
showingVectorHand: PropTypes.bool,
showingChartingIcon: PropTypes.bool,
width: PropTypes.number,
diff --git a/web/js/components/smart-handoffs/granule-count.js b/web/js/components/smart-handoffs/granule-count.js
index 35deda22b..61cabbf5f 100644
--- a/web/js/components/smart-handoffs/granule-count.js
+++ b/web/js/components/smart-handoffs/granule-count.js
@@ -153,11 +153,11 @@ export default function GranuleCount (props) {
GranuleCount.propTypes = {
getGranulesUrl: PropTypes.func,
- currentExtent: PropTypes.object,
+ currentExtent: PropTypes.shape,
displayDate: PropTypes.string,
startDate: PropTypes.string,
endDate: PropTypes.string,
selectedDate: PropTypes.string,
- selectedCollection: PropTypes.object,
+ selectedCollection: PropTypes.shape,
showGranuleHelpModal: PropTypes.func,
};
diff --git a/web/js/components/smart-handoffs/smart-handoff-modal.js b/web/js/components/smart-handoffs/smart-handoff-modal.js
index 7247451a0..14424ef03 100644
--- a/web/js/components/smart-handoffs/smart-handoff-modal.js
+++ b/web/js/components/smart-handoffs/smart-handoff-modal.js
@@ -171,8 +171,8 @@ SmartHandoffModal.propTypes = {
continueToEDS: PropTypes.func,
displayDate: PropTypes.string,
cmrSearchDetailURL: PropTypes.string,
- selectedCollection: PropTypes.object,
- selectedLayer: PropTypes.object,
+ selectedCollection: PropTypes.shape,
+ selectedLayer: PropTypes.shape,
};
export default connect(mapStateToProps)(SmartHandoffModal);
diff --git a/web/js/components/timeline/kiosk-timestamp.js b/web/js/components/timeline/kiosk-timestamp.js
index 6ba5b2409..86d1bfca7 100644
--- a/web/js/components/timeline/kiosk-timestamp.js
+++ b/web/js/components/timeline/kiosk-timestamp.js
@@ -91,7 +91,7 @@ function KioskTimeStamp({ date, subdaily, isKioskModeActive }) {
}
KioskTimeStamp.propTypes = {
- date: PropTypes.object,
+ date: PropTypes.shape,
isKioskModeActive: PropTypes.bool,
subdaily: PropTypes.bool,
};
diff --git a/web/js/components/timeline/mobile-date-picker.js b/web/js/components/timeline/mobile-date-picker.js
index 494cd5a6e..fe076bf23 100644
--- a/web/js/components/timeline/mobile-date-picker.js
+++ b/web/js/components/timeline/mobile-date-picker.js
@@ -154,7 +154,7 @@ function MobileDatePicker(props) {
}
MobileDatePicker.propTypes = {
- date: PropTypes.object,
+ date: PropTypes.shape,
endDateLimit: PropTypes.string,
hasSubdailyLayers: PropTypes.bool,
isEmbedModeActive: PropTypes.bool,
diff --git a/web/js/components/timeline/timeline-axis/date-tooltip/axis-hover-line.js b/web/js/components/timeline/timeline-axis/date-tooltip/axis-hover-line.js
index f4e875cca..ee49d9b0a 100644
--- a/web/js/components/timeline/timeline-axis/date-tooltip/axis-hover-line.js
+++ b/web/js/components/timeline/timeline-axis/date-tooltip/axis-hover-line.js
@@ -79,7 +79,7 @@ class AxisHoverLine extends PureComponent {
}
AxisHoverLine.propTypes = {
- activeLayers: PropTypes.array,
+ activeLayers: PropTypes.arrayOf,
axisWidth: PropTypes.number,
hoverLinePosition: PropTypes.number,
isAnimationDraggerDragging: PropTypes.bool,
diff --git a/web/js/components/timeline/timeline-axis/date-tooltip/date-tooltip.js b/web/js/components/timeline/timeline-axis/date-tooltip/date-tooltip.js
index bc27ccd70..f0be14475 100644
--- a/web/js/components/timeline/timeline-axis/date-tooltip/date-tooltip.js
+++ b/web/js/components/timeline/timeline-axis/date-tooltip/date-tooltip.js
@@ -181,13 +181,13 @@ class DateTooltip extends Component {
}
DateTooltip.propTypes = {
- activeLayers: PropTypes.array,
+ activeLayers: PropTypes.arrayOf,
axisWidth: PropTypes.number,
hasSubdailyLayers: PropTypes.bool,
hoverTime: PropTypes.string,
isTimelineLayerCoveragePanelOpen: PropTypes.bool,
leftOffset: PropTypes.number,
- selectedDate: PropTypes.object,
+ selectedDate: PropTypes.shape,
selectedDraggerPosition: PropTypes.number,
shouldIncludeHiddenLayers: PropTypes.bool,
showDraggerTime: PropTypes.bool,
diff --git a/web/js/components/timeline/timeline-axis/grid-range/grid-range.js b/web/js/components/timeline/timeline-axis/grid-range/grid-range.js
index e9e260d98..2fb46d77e 100644
--- a/web/js/components/timeline/timeline-axis/grid-range/grid-range.js
+++ b/web/js/components/timeline/timeline-axis/grid-range/grid-range.js
@@ -85,7 +85,7 @@ class GridRange extends PureComponent {
GridRange.propTypes = {
gridWidth: PropTypes.number,
showHover: PropTypes.func,
- timeRange: PropTypes.array,
+ timeRange: PropTypes.arrayOf,
timeScale: PropTypes.string,
transformX: PropTypes.number,
};
diff --git a/web/js/components/timeline/timeline-axis/grid-range/tile-rect.js b/web/js/components/timeline/timeline-axis/grid-range/tile-rect.js
index 7c498d6b1..2fe2b4e9f 100644
--- a/web/js/components/timeline/timeline-axis/grid-range/tile-rect.js
+++ b/web/js/components/timeline/timeline-axis/grid-range/tile-rect.js
@@ -134,7 +134,7 @@ class TileRect extends PureComponent {
TileRect.propTypes = {
gridWidth: PropTypes.number,
index: PropTypes.number,
- item: PropTypes.object,
+ item: PropTypes.shape,
showHover: PropTypes.func,
timeScale: PropTypes.string,
};
diff --git a/web/js/components/timeline/timeline-axis/timeline-axis.js b/web/js/components/timeline/timeline-axis/timeline-axis.js
index 20e19d439..073688ca9 100644
--- a/web/js/components/timeline/timeline-axis/timeline-axis.js
+++ b/web/js/components/timeline/timeline-axis/timeline-axis.js
@@ -1652,13 +1652,13 @@ class TimelineAxis extends Component {
}
TimelineAxis.propTypes = {
- activeLayers: PropTypes.array,
+ activeLayers: PropTypes.arrayOf,
addGranuleDateRanges: PropTypes.func,
animationEndLocation: PropTypes.number,
animationStartLocation: PropTypes.number,
- animEndLocationDate: PropTypes.object,
- animStartLocationDate: PropTypes.object,
- appNow: PropTypes.object,
+ animEndLocationDate: PropTypes.shape,
+ animStartLocationDate: PropTypes.shape,
+ appNow: PropTypes.shape,
axisWidth: PropTypes.number,
backDate: PropTypes.string,
dateA: PropTypes.string,
@@ -1683,11 +1683,11 @@ TimelineAxis.propTypes = {
isTimelineDragging: PropTypes.bool,
isTourActive: PropTypes.bool,
leftOffset: PropTypes.number,
- matchingTimelineCoverage: PropTypes.array,
+ matchingTimelineCoverage: PropTypes.arrayOf,
onDateChange: PropTypes.func,
parentOffset: PropTypes.number,
position: PropTypes.number,
- proj: PropTypes.object,
+ proj: PropTypes.shape,
showHover: PropTypes.func,
showHoverOff: PropTypes.func,
showHoverOn: PropTypes.func,
diff --git a/web/js/components/timeline/timeline-controls/animation-button.js b/web/js/components/timeline/timeline-controls/animation-button.js
index f46f760b0..725d991d7 100644
--- a/web/js/components/timeline/timeline-controls/animation-button.js
+++ b/web/js/components/timeline/timeline-controls/animation-button.js
@@ -72,7 +72,7 @@ function AnimationButton(props) {
}
AnimationButton.propTypes = {
- breakpoints: PropTypes.object,
+ breakpoints: PropTypes.shape,
clickAnimationButton: PropTypes.func,
disabled: PropTypes.bool,
label: PropTypes.string,
diff --git a/web/js/components/timeline/timeline-coverage/coverage-item-container.js b/web/js/components/timeline/timeline-coverage/coverage-item-container.js
index 9424d56d5..e476450e0 100644
--- a/web/js/components/timeline/timeline-coverage/coverage-item-container.js
+++ b/web/js/components/timeline/timeline-coverage/coverage-item-container.js
@@ -206,7 +206,7 @@ CoverageItemContainer.propTypes = {
getMaxEndDate: PropTypes.func,
getRangeDateEndWithAddedInterval: PropTypes.func,
needDateRangeBuilt: PropTypes.bool,
- layer: PropTypes.object,
+ layer: PropTypes.shape,
layerPeriod: PropTypes.string,
positionTransformX: PropTypes.number,
};
diff --git a/web/js/components/timeline/timeline-coverage/coverage-item-list.js b/web/js/components/timeline/timeline-coverage/coverage-item-list.js
index a3b22d13e..85ce302d5 100644
--- a/web/js/components/timeline/timeline-coverage/coverage-item-list.js
+++ b/web/js/components/timeline/timeline-coverage/coverage-item-list.js
@@ -455,8 +455,8 @@ class CoverageItemList extends Component {
}
CoverageItemList.propTypes = {
- activeLayers: PropTypes.array,
- appNow: PropTypes.object,
+ activeLayers: PropTypes.arrayOf,
+ appNow: PropTypes.shape,
axisWidth: PropTypes.number,
backDate: PropTypes.string,
frontDate: PropTypes.string,
diff --git a/web/js/components/timeline/timeline-coverage/coverage-line.js b/web/js/components/timeline/timeline-coverage/coverage-line.js
index a741019b7..385e9001c 100644
--- a/web/js/components/timeline/timeline-coverage/coverage-line.js
+++ b/web/js/components/timeline/timeline-coverage/coverage-line.js
@@ -181,7 +181,7 @@ CoverageLine.propTypes = {
index: PropTypes.string,
layerPeriod: PropTypes.string,
lineType: PropTypes.string,
- options: PropTypes.array,
+ options: PropTypes.arrayOf,
positionTransformX: PropTypes.number,
startDate: PropTypes.string,
};
diff --git a/web/js/components/timeline/timeline-coverage/timeline-coverage.js b/web/js/components/timeline/timeline-coverage/timeline-coverage.js
index e4b2d8f60..17916b3a1 100644
--- a/web/js/components/timeline/timeline-coverage/timeline-coverage.js
+++ b/web/js/components/timeline/timeline-coverage/timeline-coverage.js
@@ -509,8 +509,8 @@ const mapDispatchToProps = (dispatch) => ({
});
TimelineLayerCoveragePanel.propTypes = {
- activeLayers: PropTypes.array,
- appNow: PropTypes.object,
+ activeLayers: PropTypes.arrayOf,
+ appNow: PropTypes.shape,
axisWidth: PropTypes.number,
backDate: PropTypes.string,
frontDate: PropTypes.string,
diff --git a/web/js/components/tooltip/tooltip.js b/web/js/components/tooltip/tooltip.js
index 4457e0ff6..8acaaf56b 100644
--- a/web/js/components/tooltip/tooltip.js
+++ b/web/js/components/tooltip/tooltip.js
@@ -60,7 +60,7 @@ class Tooltip extends React.Component {
}
Tooltip.propTypes = {
- dataArray: PropTypes.array.isRequired,
+ dataArray: PropTypes.arrayOf.isRequired,
text: PropTypes.string.isRequired,
onClick: PropTypes.func,
};
diff --git a/web/js/components/tour/joyride-wrapper.js b/web/js/components/tour/joyride-wrapper.js
index c2c6577fe..4982f8527 100644
--- a/web/js/components/tour/joyride-wrapper.js
+++ b/web/js/components/tour/joyride-wrapper.js
@@ -237,9 +237,9 @@ export default function JoyrideWrapper ({
JoyrideWrapper.propTypes = {
currentTourStep: PropTypes.number,
- map: PropTypes.object,
+ map: PropTypes.shape,
proj: PropTypes.string,
tourComplete: PropTypes.bool,
- tourSteps: PropTypes.array,
+ tourSteps: PropTypes.arrayOf,
resetProductPicker: PropTypes.func,
};
diff --git a/web/js/components/tour/modal-tour-complete.js b/web/js/components/tour/modal-tour-complete.js
index adb467f0e..5135c1350 100644
--- a/web/js/components/tour/modal-tour-complete.js
+++ b/web/js/components/tour/modal-tour-complete.js
@@ -79,7 +79,7 @@ function ModalComplete(props) {
}
ModalComplete.propTypes = {
- currentStory: PropTypes.object.isRequired,
+ currentStory: PropTypes.shape.isRequired,
endTour: PropTypes.func.isRequired,
modalComplete: PropTypes.bool.isRequired,
resetTour: PropTypes.func.isRequired,
diff --git a/web/js/components/tour/modal-tour-in-progress.js b/web/js/components/tour/modal-tour-in-progress.js
index 68e838048..a050659d5 100644
--- a/web/js/components/tour/modal-tour-in-progress.js
+++ b/web/js/components/tour/modal-tour-in-progress.js
@@ -66,7 +66,7 @@ class ModalInProgress extends React.Component {
ModalInProgress.propTypes = {
currentStep: PropTypes.number.isRequired,
- currentStory: PropTypes.object.isRequired,
+ currentStory: PropTypes.shape.isRequired,
decreaseStep: PropTypes.func.isRequired,
endTour: PropTypes.func.isRequired,
isKioskModeActive: PropTypes.bool.isRequired,
diff --git a/web/js/components/tour/modal-tour-start.js b/web/js/components/tour/modal-tour-start.js
index 5923616c6..f7cc4bcad 100644
--- a/web/js/components/tour/modal-tour-start.js
+++ b/web/js/components/tour/modal-tour-start.js
@@ -103,8 +103,8 @@ ModalStart.propTypes = {
modalStart: PropTypes.bool.isRequired,
selectTour: PropTypes.func.isRequired,
showTour: PropTypes.func.isRequired,
- stories: PropTypes.object.isRequired,
- storyOrder: PropTypes.array.isRequired,
+ stories: PropTypes.shape.isRequired,
+ storyOrder: PropTypes.arrayOf.isRequired,
toggleModalStart: PropTypes.func.isRequired,
className: PropTypes.string,
height: PropTypes.number,
diff --git a/web/js/components/tour/tour-box.js b/web/js/components/tour/tour-box.js
index c5ff9b865..052dbd9c4 100644
--- a/web/js/components/tour/tour-box.js
+++ b/web/js/components/tour/tour-box.js
@@ -84,13 +84,13 @@ class TourBox extends React.Component {
TourBox.propTypes = {
index: PropTypes.number.isRequired,
selectTour: PropTypes.func.isRequired,
- story: PropTypes.object.isRequired,
+ story: PropTypes.shape.isRequired,
storyId: PropTypes.string.isRequired,
backgroundImage: PropTypes.string,
backgroundImageHover: PropTypes.string,
className: PropTypes.string,
description: PropTypes.string,
- storyOrder: PropTypes.array,
+ storyOrder: PropTypes.arrayOf,
title: PropTypes.string,
};
diff --git a/web/js/components/tour/tour-boxes.js b/web/js/components/tour/tour-boxes.js
index dcb69aee9..1c6052815 100644
--- a/web/js/components/tour/tour-boxes.js
+++ b/web/js/components/tour/tour-boxes.js
@@ -34,8 +34,8 @@ function TourBoxes(props) {
TourBoxes.propTypes = {
selectTour: PropTypes.func.isRequired,
- stories: PropTypes.object.isRequired,
- storyOrder: PropTypes.array.isRequired,
+ stories: PropTypes.shape.isRequired,
+ storyOrder: PropTypes.arrayOf.isRequired,
};
export default TourBoxes;
diff --git a/web/js/components/util/button.js b/web/js/components/util/button.js
index 9fe0d6ca1..7c574eb46 100644
--- a/web/js/components/util/button.js
+++ b/web/js/components/util/button.js
@@ -38,7 +38,7 @@ Button.propTypes = {
className: PropTypes.string,
id: PropTypes.string,
onClick: PropTypes.func,
- style: PropTypes.object,
+ style: PropTypes.shape,
text: PropTypes.string,
valid: PropTypes.bool,
};
diff --git a/web/js/components/util/custom-tooltip.js b/web/js/components/util/custom-tooltip.js
index 03ecea53e..fce777bee 100644
--- a/web/js/components/util/custom-tooltip.js
+++ b/web/js/components/util/custom-tooltip.js
@@ -96,7 +96,7 @@ function CustomTooltip (props) {
}
CustomTooltip.propTypes = {
- children: PropTypes.object,
+ children: PropTypes.shape,
id: PropTypes.string,
text: PropTypes.string,
hideTooltip: PropTypes.bool,
diff --git a/web/js/components/util/debug.js b/web/js/components/util/debug.js
index f55a0c9a0..0171eab9a 100644
--- a/web/js/components/util/debug.js
+++ b/web/js/components/util/debug.js
@@ -11,5 +11,5 @@ export default function Debug ({ parameters }) {
}
Debug.propTypes = {
- parameters: PropTypes.object,
+ parameters: PropTypes.shape,
};
diff --git a/web/js/components/util/hover-tooltip.js b/web/js/components/util/hover-tooltip.js
index 615f5eb8d..e117d8e93 100644
--- a/web/js/components/util/hover-tooltip.js
+++ b/web/js/components/util/hover-tooltip.js
@@ -38,7 +38,7 @@ HoverTooltip.defaultProps = {
};
HoverTooltip.propTypes = {
- delay: PropTypes.object,
+ delay: PropTypes.shape,
fade: PropTypes.bool,
innerClassName: PropTypes.string,
isMobile: PropTypes.bool,
diff --git a/web/js/components/util/icon-list.js b/web/js/components/util/icon-list.js
index 82233e99a..fdf6e5ac5 100644
--- a/web/js/components/util/icon-list.js
+++ b/web/js/components/util/icon-list.js
@@ -55,7 +55,7 @@ IconList.defaultProps = {
IconList.propTypes = {
active: PropTypes.string,
disabled: PropTypes.bool,
- list: PropTypes.array,
+ list: PropTypes.arrayOf,
listClass: PropTypes.string,
onClick: PropTypes.func,
size: PropTypes.string,
diff --git a/web/js/components/util/image-crop.js b/web/js/components/util/image-crop.js
index 742266696..995e49fa8 100644
--- a/web/js/components/util/image-crop.js
+++ b/web/js/components/util/image-crop.js
@@ -135,23 +135,23 @@ Crop.defaultProps = {
};
RenderCoordinates.propTypes = {
- coordinates: PropTypes.object,
- topRightStyle: PropTypes.object,
- bottomLeftStyle: PropTypes.object,
+ coordinates: PropTypes.shape,
+ topRightStyle: PropTypes.shape,
+ bottomLeftStyle: PropTypes.shape,
};
Crop.propTypes = {
onChange: PropTypes.func.isRequired,
onClose: PropTypes.func,
onDragStop: PropTypes.func,
- bottomLeftStyle: PropTypes.object,
- coordinates: PropTypes.object,
+ bottomLeftStyle: PropTypes.shape,
+ coordinates: PropTypes.shape,
height: PropTypes.number,
maxHeight: PropTypes.number,
maxWidth: PropTypes.number,
keepSelection: PropTypes.bool,
showCoordinates: PropTypes.bool,
- topRightStyle: PropTypes.object,
+ topRightStyle: PropTypes.shape,
width: PropTypes.number,
x: PropTypes.number,
y: PropTypes.number,
diff --git a/web/js/components/util/monospace-date.js b/web/js/components/util/monospace-date.js
index 50a02d9c9..710cc6f32 100644
--- a/web/js/components/util/monospace-date.js
+++ b/web/js/components/util/monospace-date.js
@@ -10,6 +10,6 @@ export default function MonospaceDate({ date, children }) {
);
}
MonospaceDate.propTypes = {
- children: PropTypes.object,
+ children: PropTypes.shape,
date: PropTypes.string,
};
diff --git a/web/js/components/util/scrollbar.js b/web/js/components/util/scrollbar.js
index 7afd64ef9..17c06e093 100644
--- a/web/js/components/util/scrollbar.js
+++ b/web/js/components/util/scrollbar.js
@@ -55,5 +55,5 @@ export default function Scrollbars(props) {
Scrollbars.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
- style: PropTypes.object,
+ style: PropTypes.shape,
};
diff --git a/web/js/components/util/selector.js b/web/js/components/util/selector.js
index 056928b62..bf843b216 100644
--- a/web/js/components/util/selector.js
+++ b/web/js/components/util/selector.js
@@ -34,7 +34,7 @@ export default function Selector (props) {
Selector.propTypes = {
id: PropTypes.string,
onChange: PropTypes.func,
- optionArray: PropTypes.object,
+ optionArray: PropTypes.shape,
optionName: PropTypes.string,
value: PropTypes.string,
};
diff --git a/web/js/components/vector-metadata/table.js b/web/js/components/vector-metadata/table.js
index 9efa69811..493410c57 100644
--- a/web/js/components/vector-metadata/table.js
+++ b/web/js/components/vector-metadata/table.js
@@ -78,6 +78,6 @@ export default class VectorMetaTable extends React.Component {
}
VectorMetaTable.propTypes = {
id: PropTypes.number,
- metaArray: PropTypes.array,
+ metaArray: PropTypes.arrayOf,
title: PropTypes.string,
};
diff --git a/web/js/containers/alerts.js b/web/js/containers/alerts.js
index f26d96ed1..3d6988e9f 100644
--- a/web/js/containers/alerts.js
+++ b/web/js/containers/alerts.js
@@ -248,8 +248,8 @@ export default connect(
)(DismissableAlerts);
DismissableAlerts.propTypes = {
- ddvZoomAlerts: PropTypes.array,
- ddvLocationAlerts: PropTypes.array,
+ ddvZoomAlerts: PropTypes.arrayOf,
+ ddvLocationAlerts: PropTypes.arrayOf,
dismissVectorZoomAlert: PropTypes.func,
dismissVectorExceededAlert: PropTypes.func,
hasSubdailyLayers: PropTypes.bool,
diff --git a/web/js/containers/animation-widget/animation-widget.js b/web/js/containers/animation-widget/animation-widget.js
index 8af9c4cf3..213a127a3 100644
--- a/web/js/containers/animation-widget/animation-widget.js
+++ b/web/js/containers/animation-widget/animation-widget.js
@@ -520,15 +520,15 @@ const mapDispatchToProps = (dispatch) => ({
});
AnimationWidget.propTypes = {
- appNow: PropTypes.object,
+ appNow: PropTypes.shape,
animationCustomModalOpen: PropTypes.bool,
autoplay: PropTypes.bool,
- breakpoints: PropTypes.object,
+ breakpoints: PropTypes.shape,
checkAnimationAvailability: PropTypes.bool,
- snappedCurrentDate: PropTypes.object,
- currentDate: PropTypes.object,
+ snappedCurrentDate: PropTypes.shape,
+ currentDate: PropTypes.shape,
delta: PropTypes.number,
- endDate: PropTypes.object,
+ endDate: PropTypes.shape,
hasFutureLayers: PropTypes.bool,
hasSubdailyLayers: PropTypes.bool,
interval: PropTypes.string,
@@ -544,9 +544,9 @@ AnimationWidget.propTypes = {
isPortrait: PropTypes.bool,
isLandscape: PropTypes.bool,
looping: PropTypes.bool,
- map: PropTypes.object,
- maxDate: PropTypes.object,
- minDate: PropTypes.object,
+ map: PropTypes.shape,
+ maxDate: PropTypes.shape,
+ minDate: PropTypes.shape,
numberOfFrames: PropTypes.number,
onToggleAnimationCollapse: PropTypes.func,
onClose: PropTypes.func,
@@ -564,7 +564,7 @@ AnimationWidget.propTypes = {
selectDate: PropTypes.func,
sliderLabel: PropTypes.string,
speedRedux: PropTypes.number,
- startDate: PropTypes.object,
+ startDate: PropTypes.shape,
subDailyMode: PropTypes.bool,
};
diff --git a/web/js/containers/animation-widget/collapsed-animation-widget.js b/web/js/containers/animation-widget/collapsed-animation-widget.js
index 92efbefdd..9172f4627 100644
--- a/web/js/containers/animation-widget/collapsed-animation-widget.js
+++ b/web/js/containers/animation-widget/collapsed-animation-widget.js
@@ -86,8 +86,8 @@ function CollapsedAnimationWidget (props) {
}
CollapsedAnimationWidget.propTypes = {
- breakpoints: PropTypes.object,
- collapsedWidgetPosition: PropTypes.object,
+ breakpoints: PropTypes.shape,
+ collapsedWidgetPosition: PropTypes.shape,
handleDragStart: PropTypes.func,
hasSubdailyLayers: PropTypes.bool,
isDistractionFreeModeActive: PropTypes.bool,
diff --git a/web/js/containers/animation-widget/desktop-animation-widget.js b/web/js/containers/animation-widget/desktop-animation-widget.js
index 8f93e8006..99877b8fd 100644
--- a/web/js/containers/animation-widget/desktop-animation-widget.js
+++ b/web/js/containers/animation-widget/desktop-animation-widget.js
@@ -136,16 +136,16 @@ function DesktopAnimationWidget(props) {
DesktopAnimationWidget.propTypes = {
animationCustomModalOpen: PropTypes.bool,
autoplay: PropTypes.bool,
- customModalType: PropTypes.object,
- endDate: PropTypes.object,
+ customModalType: PropTypes.shape,
+ endDate: PropTypes.shape,
handleDragStart: PropTypes.func,
hasSubdailyLayers: PropTypes.bool,
interval: PropTypes.string,
isDistractionFreeModeActive: PropTypes.bool,
isPlaying: PropTypes.bool,
looping: PropTypes.bool,
- maxDate: PropTypes.object,
- minDate: PropTypes.object,
+ maxDate: PropTypes.shape,
+ minDate: PropTypes.shape,
numberOfFrames: PropTypes.number,
onClose: PropTypes.func,
onDateChange: PropTypes.func,
@@ -159,9 +159,9 @@ DesktopAnimationWidget.propTypes = {
setSpeed: PropTypes.func,
sliderLabel: PropTypes.string,
speed: PropTypes.number,
- startDate: PropTypes.object,
+ startDate: PropTypes.shape,
subDailyMode: PropTypes.bool,
- widgetPosition: PropTypes.object,
+ widgetPosition: PropTypes.shape,
zeroDates: PropTypes.func,
};
diff --git a/web/js/containers/animation-widget/kiosk-animation-widget.js b/web/js/containers/animation-widget/kiosk-animation-widget.js
index eb52a8b68..385a47053 100644
--- a/web/js/containers/animation-widget/kiosk-animation-widget.js
+++ b/web/js/containers/animation-widget/kiosk-animation-widget.js
@@ -27,8 +27,8 @@ function KioskAnimationWidget(props) {
}
KioskAnimationWidget.propTypes = {
- startDate: PropTypes.object,
- endDate: PropTypes.object,
+ startDate: PropTypes.shape,
+ endDate: PropTypes.shape,
hasSubdailyLayers: PropTypes.bool,
};
diff --git a/web/js/containers/animation-widget/mobile-animation-widget.js b/web/js/containers/animation-widget/mobile-animation-widget.js
index 66b8b5787..cbeb59b84 100644
--- a/web/js/containers/animation-widget/mobile-animation-widget.js
+++ b/web/js/containers/animation-widget/mobile-animation-widget.js
@@ -180,8 +180,8 @@ function MobileAnimationWidget (props) {
}
MobileAnimationWidget.propTypes = {
- breakpoints: PropTypes.object,
- endDate: PropTypes.object,
+ breakpoints: PropTypes.shape,
+ endDate: PropTypes.shape,
hasSubdailyLayers: PropTypes.bool,
isEmbedModeActive: PropTypes.bool,
isLandscape: PropTypes.bool,
@@ -191,8 +191,8 @@ MobileAnimationWidget.propTypes = {
isPlaying: PropTypes.bool,
isPortrait: PropTypes.bool,
looping: PropTypes.bool,
- maxDate: PropTypes.object,
- minDate: PropTypes.object,
+ maxDate: PropTypes.shape,
+ minDate: PropTypes.shape,
onLoop: PropTypes.func,
onSlide: PropTypes.func,
onUpdateEndDate: PropTypes.func,
@@ -204,7 +204,7 @@ MobileAnimationWidget.propTypes = {
setSpeed: PropTypes.func,
sliderLabel: PropTypes.string,
speed: PropTypes.number,
- startDate: PropTypes.object,
+ startDate: PropTypes.shape,
subDailyMode: PropTypes.bool,
toggleCollapse: PropTypes.func,
};
diff --git a/web/js/containers/embed.js b/web/js/containers/embed.js
index bae95b3b7..d359f4b70 100644
--- a/web/js/containers/embed.js
+++ b/web/js/containers/embed.js
@@ -89,5 +89,5 @@ export default connect(
Embed.propTypes = {
isEmbedModeActive: PropTypes.bool,
isMobile: PropTypes.bool,
- selectedDate: PropTypes.object,
+ selectedDate: PropTypes.shape,
};
diff --git a/web/js/containers/gif.js b/web/js/containers/gif.js
index f57dbbb72..c62148161 100644
--- a/web/js/containers/gif.js
+++ b/web/js/containers/gif.js
@@ -470,18 +470,18 @@ export default connect(
)(GIF);
GIF.propTypes = {
- boundaries: PropTypes.object,
- startDate: PropTypes.object,
- endDate: PropTypes.object,
+ boundaries: PropTypes.shape,
+ startDate: PropTypes.shape,
+ endDate: PropTypes.shape,
startDateStr: PropTypes.string,
endDateStr: PropTypes.string,
getImageArray: PropTypes.func,
increment: PropTypes.string,
- map: PropTypes.object,
+ map: PropTypes.shape,
numberOfFrames: PropTypes.number,
onBoundaryChange: PropTypes.func,
onClose: PropTypes.func,
- proj: PropTypes.object,
+ proj: PropTypes.shape,
screenHeight: PropTypes.number,
screenWidth: PropTypes.number,
speed: PropTypes.number,
diff --git a/web/js/containers/image-download.js b/web/js/containers/image-download.js
index f14bc25b0..631b1c8cc 100644
--- a/web/js/containers/image-download.js
+++ b/web/js/containers/image-download.js
@@ -300,18 +300,18 @@ export default connect(
ImageDownloadContainer.propTypes = {
closeModal: PropTypes.func.isRequired,
fileType: PropTypes.string.isRequired,
- map: PropTypes.object.isRequired,
+ map: PropTypes.shape.isRequired,
onBoundaryChange: PropTypes.func.isRequired,
onPanelChange: PropTypes.func.isRequired,
- proj: PropTypes.object.isRequired,
+ proj: PropTypes.shape.isRequired,
url: PropTypes.string.isRequired,
- date: PropTypes.object,
+ date: PropTypes.shape,
getLayers: PropTypes.func,
hasSubdailyLayers: PropTypes.bool,
isWorldfile: PropTypes.bool,
- markerCoordinates: PropTypes.array,
+ markerCoordinates: PropTypes.arrayOf,
resolution: PropTypes.string,
screenHeight: PropTypes.number,
screenWidth: PropTypes.number,
- boundaries: PropTypes.object,
+ boundaries: PropTypes.shape,
};
diff --git a/web/js/containers/info.js b/web/js/containers/info.js
index b0e2449ea..ec37e67e7 100644
--- a/web/js/containers/info.js
+++ b/web/js/containers/info.js
@@ -259,14 +259,14 @@ export default connect(
InfoList.propTypes = {
aboutClick: PropTypes.func,
globalSettingsClick: PropTypes.func,
- config: PropTypes.object,
+ config: PropTypes.shape,
feedbackEnabled: PropTypes.bool,
feedbackIsInitiated: PropTypes.bool,
isDistractionFreeModeActive: PropTypes.bool,
isMobile: PropTypes.bool,
isTourActive: PropTypes.bool,
notificationClick: PropTypes.func,
- notifications: PropTypes.object,
+ notifications: PropTypes.shape,
openAboutModal: PropTypes.func,
sendFeedback: PropTypes.func,
startTour: PropTypes.func,
diff --git a/web/js/containers/map-interactions/ol-vector-interactions.js b/web/js/containers/map-interactions/ol-vector-interactions.js
index f451c2bc6..cc84f7ec7 100644
--- a/web/js/containers/map-interactions/ol-vector-interactions.js
+++ b/web/js/containers/map-interactions/ol-vector-interactions.js
@@ -393,26 +393,26 @@ VectorInteractions.propTypes = {
changeCursor: PropTypes.func.isRequired,
getDialogObject: PropTypes.func.isRequired,
isShowingClick: PropTypes.bool.isRequired,
- visibleExtent: PropTypes.array,
+ visibleExtent: PropTypes.arrayOf,
measureIsActive: PropTypes.bool.isRequired,
- modalState: PropTypes.object.isRequired,
+ modalState: PropTypes.shape.isRequired,
onCloseModal: PropTypes.func.isRequired,
openVectorDialog: PropTypes.func.isRequired,
selectVectorFeatures: PropTypes.func.isRequired,
- compareState: PropTypes.object,
- granuleFootprints: PropTypes.object,
+ compareState: PropTypes.shape,
+ granuleFootprints: PropTypes.shape,
granulePlatform: PropTypes.string,
activateVectorZoomAlert: PropTypes.func,
activateVectorExceededResultsAlert: PropTypes.func,
clearVectorExceededResultsAlert: PropTypes.func,
- activeLayers: PropTypes.array,
- screenSize: PropTypes.object,
+ activeLayers: PropTypes.arrayOf,
+ screenSize: PropTypes.shape,
isEmbedModeActive: PropTypes.bool,
isVectorExceededAlertPresent: PropTypes.bool,
isCoordinateSearchActive: PropTypes.bool,
isMobile: PropTypes.bool,
- lastSelected: PropTypes.object,
- proj: PropTypes.object,
+ lastSelected: PropTypes.shape,
+ proj: PropTypes.shape,
swipeOffset: PropTypes.number,
};
diff --git a/web/js/containers/modal.js b/web/js/containers/modal.js
index c5aacb2e1..8ea2ecd23 100644
--- a/web/js/containers/modal.js
+++ b/web/js/containers/modal.js
@@ -344,8 +344,8 @@ ModalContainer.defaultProps = {
};
ModalContainer.propTypes = {
- bodyTemplate: PropTypes.object,
- customProps: PropTypes.object,
+ bodyTemplate: PropTypes.shape,
+ customProps: PropTypes.shape,
id: PropTypes.string,
isCustom: PropTypes.bool,
isEmbedModeActive: PropTypes.bool,
diff --git a/web/js/containers/notifications.js b/web/js/containers/notifications.js
index 3315455c9..7b512d32c 100644
--- a/web/js/containers/notifications.js
+++ b/web/js/containers/notifications.js
@@ -57,7 +57,7 @@ export default connect(
)(Notifications);
Notifications.propTypes = {
- object: PropTypes.object,
+ object: PropTypes.shape,
numberOutagesUnseen: PropTypes.number,
kioskModeEnabled: PropTypes.bool,
};
diff --git a/web/js/containers/projection.js b/web/js/containers/projection.js
index 8b271dea2..8d50982d2 100644
--- a/web/js/containers/projection.js
+++ b/web/js/containers/projection.js
@@ -111,6 +111,6 @@ ProjectionList.propTypes = {
onCloseModal: PropTypes.func,
isMobile: PropTypes.bool,
projection: PropTypes.string,
- projectionArray: PropTypes.array,
+ projectionArray: PropTypes.arrayOf,
updateProjection: PropTypes.func,
};
diff --git a/web/js/containers/share.js b/web/js/containers/share.js
index 8f88a57f7..53b94393f 100644
--- a/web/js/containers/share.js
+++ b/web/js/containers/share.js
@@ -402,8 +402,8 @@ ShareLinkContainer.propTypes = {
isMobile: PropTypes.bool,
mock: PropTypes.string,
requestShortLinkAction: PropTypes.func,
- selectedDate: PropTypes.object,
+ selectedDate: PropTypes.shape,
sendFeedback: PropTypes.func,
- shortLink: PropTypes.object,
+ shortLink: PropTypes.shape,
urlShortening: PropTypes.bool,
};
diff --git a/web/js/containers/sidebar/add-layers-content.js b/web/js/containers/sidebar/add-layers-content.js
index e0203f421..a5affff80 100644
--- a/web/js/containers/sidebar/add-layers-content.js
+++ b/web/js/containers/sidebar/add-layers-content.js
@@ -116,7 +116,7 @@ AddLayersContent.propTypes = {
isEmbedModeActive: PropTypes.bool,
isMobile: PropTypes.bool,
toggleOverlayGroups: PropTypes.func,
- breakpoints: PropTypes.object,
+ breakpoints: PropTypes.shape,
screenWidth: PropTypes.number,
addLayers: PropTypes.func,
};
diff --git a/web/js/containers/sidebar/charting.js b/web/js/containers/sidebar/charting.js
index 50baa5503..42f863f27 100644
--- a/web/js/containers/sidebar/charting.js
+++ b/web/js/containers/sidebar/charting.js
@@ -113,11 +113,11 @@ export default connect(
)(ChartingLayerMenu);
ChartingLayerMenu.propTypes = {
- activeLayersWithPalettes: PropTypes.array,
+ activeLayersWithPalettes: PropTypes.arrayOf,
height: PropTypes.number,
isActive: PropTypes.bool,
isEmbedModeActive: PropTypes.bool,
updateActiveChartingLayer: PropTypes.func,
- renderedPalettes: PropTypes.object,
+ renderedPalettes: PropTypes.shape,
activeChartingLayer: PropTypes.string,
};
diff --git a/web/js/containers/sidebar/events.js b/web/js/containers/sidebar/events.js
index ab56339c0..16bb65934 100644
--- a/web/js/containers/sidebar/events.js
+++ b/web/js/containers/sidebar/events.js
@@ -237,27 +237,27 @@ export default connect(
Events.propTypes = {
defaultEventLayer: PropTypes.string,
deselectEvent: PropTypes.func,
- eventsData: PropTypes.array,
- eventLayers: PropTypes.array,
+ eventsData: PropTypes.arrayOf,
+ eventLayers: PropTypes.arrayOf,
hasRequestError: PropTypes.bool,
height: PropTypes.number,
- highlighted: PropTypes.object,
+ highlighted: PropTypes.shape,
highlightEvent: PropTypes.func,
isLoading: PropTypes.bool,
isMobile: PropTypes.bool,
isEmbedModeActive: PropTypes.bool,
- layers: PropTypes.array,
+ layers: PropTypes.arrayOf,
openFilterModal: PropTypes.func,
removeGroup: PropTypes.func,
- selected: PropTypes.object,
+ selected: PropTypes.shape,
selectedDate: PropTypes.string,
selectedStartDate: PropTypes.string,
selectedEndDate: PropTypes.string,
- selectedCategories: PropTypes.array,
+ selectedCategories: PropTypes.arrayOf,
selectEvent: PropTypes.func,
showAlert: PropTypes.bool,
showDates: PropTypes.bool,
- sources: PropTypes.array,
+ sources: PropTypes.arrayOf,
toggleGroupVisibility: PropTypes.func,
toggleVisibility: PropTypes.func,
unHighlightEvent: PropTypes.func,
diff --git a/web/js/containers/sidebar/footer-content.js b/web/js/containers/sidebar/footer-content.js
index 16456d339..8b404a463 100644
--- a/web/js/containers/sidebar/footer-content.js
+++ b/web/js/containers/sidebar/footer-content.js
@@ -256,7 +256,7 @@ FooterContent.propTypes = {
chartingModeAccessible: PropTypes.bool,
compareFeature: PropTypes.bool,
compareMode: PropTypes.string,
- eventsData: PropTypes.array,
+ eventsData: PropTypes.arrayOf,
isChartingActive: PropTypes.bool,
isCompareActive: PropTypes.bool,
isMobile: PropTypes.bool,
diff --git a/web/js/containers/sidebar/layer-list.js b/web/js/containers/sidebar/layer-list.js
index f87bffc1c..cb4e955d7 100644
--- a/web/js/containers/sidebar/layer-list.js
+++ b/web/js/containers/sidebar/layer-list.js
@@ -202,18 +202,18 @@ function LayerList(props) {
LayerList.propTypes = {
activeChartingLayer: PropTypes.string,
- activeLayers: PropTypes.array,
+ activeLayers: PropTypes.arrayOf,
available: PropTypes.func,
collapsed: PropTypes.bool,
compareState: PropTypes.string,
- dragHandleProps: PropTypes.object,
+ dragHandleProps: PropTypes.shape,
getNames: PropTypes.func,
groupId: PropTypes.string,
isAnimating: PropTypes.bool,
isChartingActive: PropTypes.bool,
isMobile: PropTypes.bool,
isEmbedModeActive: PropTypes.bool,
- layers: PropTypes.array,
+ layers: PropTypes.arrayOf,
layerSplit: PropTypes.number,
numVisible: PropTypes.number,
projId: PropTypes.string,
@@ -222,7 +222,7 @@ LayerList.propTypes = {
toggleCollapse: PropTypes.func,
toggleVisibility: PropTypes.func,
title: PropTypes.string,
- zots: PropTypes.object,
+ zots: PropTypes.shape,
};
const mapStateToProps = (state, ownProps) => {
diff --git a/web/js/containers/sidebar/layer-row.js b/web/js/containers/sidebar/layer-row.js
index d312cd76e..192071543 100644
--- a/web/js/containers/sidebar/layer-row.js
+++ b/web/js/containers/sidebar/layer-row.js
@@ -822,7 +822,7 @@ LayerRow.defaultProps = {
};
LayerRow.propTypes = {
- compare: PropTypes.object,
+ compare: PropTypes.shape,
getPalette: PropTypes.func,
hasPalette: PropTypes.bool,
globalTemperatureUnit: PropTypes.string,
@@ -836,26 +836,26 @@ LayerRow.propTypes = {
isLoading: PropTypes.bool,
isMobile: PropTypes.bool,
isVisible: PropTypes.bool,
- layer: PropTypes.object,
- collections: PropTypes.object,
+ layer: PropTypes.shape,
+ collections: PropTypes.shape,
compareState: PropTypes.string,
measurementDescriptionPath: PropTypes.string,
- names: PropTypes.object,
+ names: PropTypes.shape,
onInfoClick: PropTypes.func,
onOptionsClick: PropTypes.func,
onRemoveClick: PropTypes.func,
updateActiveChartingLayer: PropTypes.func,
- palette: PropTypes.object,
- palettes: PropTypes.object,
- paletteLegends: PropTypes.array,
- renderedPalette: PropTypes.object,
+ palette: PropTypes.shape,
+ palettes: PropTypes.shape,
+ paletteLegends: PropTypes.arrayOf,
+ renderedPalette: PropTypes.shape,
requestPalette: PropTypes.func,
toggleVisibility: PropTypes.func,
hasClickableFeature: PropTypes.bool,
- tracksForLayer: PropTypes.array,
+ tracksForLayer: PropTypes.arrayOf,
openVectorAlertModal: PropTypes.func,
openGranuleAlertModal: PropTypes.func,
- zot: PropTypes.object,
+ zot: PropTypes.shape,
isVectorLayer: PropTypes.bool,
isChartableLayer: PropTypes.bool,
isAnimating: PropTypes.bool,
@@ -866,10 +866,10 @@ LayerRow.propTypes = {
isDDVLocationAlertPresent: PropTypes.bool,
isDDVZoomAlertPresent: PropTypes.bool,
openZoomAlertModal: PropTypes.func,
- ddvLocationAlerts: PropTypes.array,
- ddvZoomAlerts: PropTypes.array,
+ ddvLocationAlerts: PropTypes.arrayOf,
+ ddvZoomAlerts: PropTypes.arrayOf,
disableDDVLocationAlert: PropTypes.func,
disableDDVZoomAlert: PropTypes.func,
- map: PropTypes.object,
+ map: PropTypes.shape,
selectedDate: PropTypes.instanceOf(Date),
};
diff --git a/web/js/containers/sidebar/layers-container.js b/web/js/containers/sidebar/layers-container.js
index 842218a37..c705ddd7d 100644
--- a/web/js/containers/sidebar/layers-container.js
+++ b/web/js/containers/sidebar/layers-container.js
@@ -225,8 +225,8 @@ export default connect(
)(LayersContainer);
LayersContainer.propTypes = {
- activeLayersMap: PropTypes.object,
- baselayers: PropTypes.array,
+ activeLayersMap: PropTypes.shape,
+ baselayers: PropTypes.arrayOf,
compareState: PropTypes.string,
groupOverlays: PropTypes.bool,
height: PropTypes.number,
@@ -235,11 +235,11 @@ LayersContainer.propTypes = {
isCompareActive: PropTypes.bool,
isEmbedModeActive: PropTypes.bool,
isMobile: PropTypes.bool,
- overlayGroups: PropTypes.array,
- overlays: PropTypes.array,
+ overlayGroups: PropTypes.arrayOf,
+ overlays: PropTypes.arrayOf,
reorderOverlayGroups: PropTypes.func,
toggleCollapse: PropTypes.func,
- breakpoints: PropTypes.object,
+ breakpoints: PropTypes.shape,
isPlaying: PropTypes.bool,
screenWidth: PropTypes.number,
addLayers: PropTypes.func,
diff --git a/web/js/containers/sidebar/orbit-track.js b/web/js/containers/sidebar/orbit-track.js
index 2fe0752e1..e9b00320c 100644
--- a/web/js/containers/sidebar/orbit-track.js
+++ b/web/js/containers/sidebar/orbit-track.js
@@ -60,11 +60,11 @@ OrbitTrack.propTypes = {
hasPalette: PropTypes.bool,
isDistractionFreeModeActive: PropTypes.bool,
isMobile: PropTypes.bool,
- paletteLegends: PropTypes.array,
- parentLayer: PropTypes.object,
- renderedPalette: PropTypes.object,
+ paletteLegends: PropTypes.arrayOf,
+ parentLayer: PropTypes.shape,
+ renderedPalette: PropTypes.shape,
requestPalette: PropTypes.func,
- trackLayer: PropTypes.object,
+ trackLayer: PropTypes.shape,
};
function mapStateToProps(state, ownProps) {
diff --git a/web/js/containers/sidebar/sidebar.js b/web/js/containers/sidebar/sidebar.js
index be6f339de..b00494db0 100644
--- a/web/js/containers/sidebar/sidebar.js
+++ b/web/js/containers/sidebar/sidebar.js
@@ -546,10 +546,10 @@ Sidebar.propTypes = {
changeTab: PropTypes.func,
chartingModeAccessible: PropTypes.bool,
collapseExpandToggle: PropTypes.func,
- config: PropTypes.object,
+ config: PropTypes.shape,
displayStaticMap: PropTypes.bool,
- eventsData: PropTypes.array,
- eventsSources: PropTypes.array,
+ eventsData: PropTypes.arrayOf,
+ eventsSources: PropTypes.arrayOf,
hasEventRequestError: PropTypes.bool,
isCollapsed: PropTypes.bool,
isCompareMode: PropTypes.bool,
@@ -565,9 +565,9 @@ Sidebar.propTypes = {
numberOfLayers: PropTypes.number,
onTabClick: PropTypes.func,
screenHeight: PropTypes.number,
- selectedMap: PropTypes.object,
- tabTypes: PropTypes.object,
+ selectedMap: PropTypes.shape,
+ tabTypes: PropTypes.shape,
requestEvents: PropTypes.func,
requestSources: PropTypes.func,
- selectedDate: PropTypes.object,
+ selectedDate: PropTypes.shape,
};
diff --git a/web/js/containers/sidebar/smart-handoff.js b/web/js/containers/sidebar/smart-handoff.js
index f2a4f8c0b..dc197f59c 100644
--- a/web/js/containers/sidebar/smart-handoff.js
+++ b/web/js/containers/sidebar/smart-handoff.js
@@ -731,30 +731,30 @@ export default connect(
)(SmartHandoff);
SmartHandoff.propTypes = {
- availableLayers: PropTypes.array,
- availableTools: PropTypes.array,
+ availableLayers: PropTypes.arrayOf,
+ availableTools: PropTypes.arrayOf,
displayDate: PropTypes.string,
isLoading: PropTypes.bool,
isGranuleLayer: PropTypes.bool,
endDate: PropTypes.string,
getConceptUrl: PropTypes.func,
getGranulesUrl: PropTypes.func,
- granuleLayers: PropTypes.object,
- map: PropTypes.object.isRequired,
- proj: PropTypes.object,
+ granuleLayers: PropTypes.shape,
+ map: PropTypes.shape.isRequired,
+ proj: PropTypes.shape,
fetchAvailableTools: PropTypes.func,
requestFailed: PropTypes.bool,
screenHeight: PropTypes.number,
screenWidth: PropTypes.number,
selectCollection: PropTypes.func,
selectedDate: PropTypes.string,
- selectedLayer: PropTypes.object,
- selectedCollection: PropTypes.object,
+ selectedLayer: PropTypes.shape,
+ selectedCollection: PropTypes.shape,
showWarningModal: PropTypes.func,
showGranuleHelpModal: PropTypes.func,
showNotAvailableModal: PropTypes.func,
startDate: PropTypes.string,
- validatedLayers: PropTypes.array,
- validatedConceptIds: PropTypes.object,
+ validatedLayers: PropTypes.arrayOf,
+ validatedConceptIds: PropTypes.shape,
validateLayersConceptIds: PropTypes.func,
};
diff --git a/web/js/containers/sidebar/zot.js b/web/js/containers/sidebar/zot.js
index cad4c2896..cf71670d4 100644
--- a/web/js/containers/sidebar/zot.js
+++ b/web/js/containers/sidebar/zot.js
@@ -59,5 +59,5 @@ export default function Zot (props) {
Zot.propTypes = {
isMobile: PropTypes.bool,
layer: PropTypes.string,
- zot: PropTypes.object,
+ zot: PropTypes.shape,
};
diff --git a/web/js/containers/timeline/timeline.js b/web/js/containers/timeline/timeline.js
index 3a9dc9da1..de4bed533 100644
--- a/web/js/containers/timeline/timeline.js
+++ b/web/js/containers/timeline/timeline.js
@@ -1745,13 +1745,13 @@ export default connect(
Timeline.propTypes = {
addGranuleDateRanges: PropTypes.func,
- appNow: PropTypes.object,
- activeLayers: PropTypes.array,
+ appNow: PropTypes.shape,
+ activeLayers: PropTypes.arrayOf,
animationDisabled: PropTypes.bool,
- animEndLocationDate: PropTypes.object,
- animStartLocationDate: PropTypes.object,
+ animEndLocationDate: PropTypes.shape,
+ animStartLocationDate: PropTypes.shape,
axisWidth: PropTypes.number,
- breakpoints: PropTypes.object,
+ breakpoints: PropTypes.shape,
changeCustomInterval: PropTypes.func,
changeTimeScale: PropTypes.func,
closeAnimation: PropTypes.func,
@@ -1764,7 +1764,7 @@ Timeline.propTypes = {
draggerSelected: PropTypes.string,
hasFutureLayers: PropTypes.bool,
hasSubdailyLayers: PropTypes.bool,
- subDailyLayersList: PropTypes.object,
+ subDailyLayersList: PropTypes.shape,
hideTimeline: PropTypes.bool,
interval: PropTypes.number,
isAnimationPlaying: PropTypes.bool,
@@ -1797,7 +1797,7 @@ Timeline.propTypes = {
rightArrowDisabled: PropTypes.bool,
screenWidth: PropTypes.number,
selectDate: PropTypes.func,
- selectedDate: PropTypes.object,
+ selectedDate: PropTypes.shape,
timelineCustomModalOpen: PropTypes.bool,
timelineEndDateLimit: PropTypes.string,
timelineStartDateLimit: PropTypes.string,
@@ -1806,5 +1806,5 @@ Timeline.propTypes = {
toggleActiveCompareState: PropTypes.func,
triggerTodayButton: PropTypes.func,
updateAppNow: PropTypes.func,
- proj: PropTypes.object,
+ proj: PropTypes.shape,
};
diff --git a/web/js/containers/toolbar.js b/web/js/containers/toolbar.js
index e297ad595..3ad8855fc 100644
--- a/web/js/containers/toolbar.js
+++ b/web/js/containers/toolbar.js
@@ -590,9 +590,9 @@ export default connect(
)(toolbarContainer);
toolbarContainer.propTypes = {
- activePalettes: PropTypes.object,
+ activePalettes: PropTypes.shape,
hasNonDownloadableLayer: PropTypes.bool,
- config: PropTypes.object,
+ config: PropTypes.shape,
faSize: PropTypes.string,
hasCustomPalette: PropTypes.bool,
isAboutOpen: PropTypes.bool,
@@ -618,5 +618,5 @@ toolbarContainer.propTypes = {
toggleDialogVisible: PropTypes.func,
toggleDistractionFreeModeAction: PropTypes.func,
toggleShowLocationSearch: PropTypes.func,
- visibleLayersForProj: PropTypes.array,
+ visibleLayersForProj: PropTypes.arrayOf,
};
diff --git a/web/js/containers/tour.js b/web/js/containers/tour.js
index ea6d2c930..24ead42f1 100644
--- a/web/js/containers/tour.js
+++ b/web/js/containers/tour.js
@@ -635,11 +635,11 @@ export default connect(
Tour.propTypes = {
activeTab: PropTypes.string,
changeTab: PropTypes.func,
- config: PropTypes.object.isRequired,
- map: PropTypes.object,
+ config: PropTypes.shape.isRequired,
+ map: PropTypes.shape,
selectTour: PropTypes.func.isRequired,
- stories: PropTypes.object.isRequired,
- storyOrder: PropTypes.array.isRequired,
+ stories: PropTypes.shape.isRequired,
+ storyOrder: PropTypes.arrayOf.isRequired,
currentStoryId: PropTypes.string,
endTour: PropTypes.func,
isActive: PropTypes.bool,
@@ -648,7 +648,7 @@ Tour.propTypes = {
processStepLink: PropTypes.func,
promiseImageryForTour: PropTypes.func,
preProcessStepLink: PropTypes.func,
- renderedPalettes: PropTypes.object,
+ renderedPalettes: PropTypes.shape,
resetProductPicker: PropTypes.func,
screenHeight: PropTypes.number,
startTour: PropTypes.func,
diff --git a/web/js/containers/vector-dialog.js b/web/js/containers/vector-dialog.js
index 84f3fac42..9e077d8e6 100644
--- a/web/js/containers/vector-dialog.js
+++ b/web/js/containers/vector-dialog.js
@@ -141,5 +141,5 @@ VectorDialog.propTypes = {
dialogKey: PropTypes.number,
modalHeight: PropTypes.number,
toggleWithClose: PropTypes.func,
- vectorMetaObject: PropTypes.object,
+ vectorMetaObject: PropTypes.shape,
};
diff --git a/web/js/map/natural-events/event-markers.js b/web/js/map/natural-events/event-markers.js
index a7be837bd..5e566d347 100644
--- a/web/js/map/natural-events/event-markers.js
+++ b/web/js/map/natural-events/event-markers.js
@@ -309,16 +309,16 @@ const mapDispatchToProps = (dispatch) => ({
});
EventMarkers.propTypes = {
- eventsData: PropTypes.array,
+ eventsData: PropTypes.arrayOf,
eventsDataIsLoading: PropTypes.bool,
highlightEvent: PropTypes.func,
isAnimatingToEvent: PropTypes.bool,
isMobile: PropTypes.bool,
- map: PropTypes.object,
- mapUi: PropTypes.object,
- proj: PropTypes.object,
+ map: PropTypes.shape,
+ mapUi: PropTypes.shape,
+ proj: PropTypes.shape,
selectEvent: PropTypes.func,
- selectedEvent: PropTypes.object,
+ selectedEvent: PropTypes.shape,
unHighlightEvent: PropTypes.func,
};
diff --git a/web/js/map/natural-events/natural-events.js b/web/js/map/natural-events/natural-events.js
index e16071324..272f19d89 100644
--- a/web/js/map/natural-events/natural-events.js
+++ b/web/js/map/natural-events/natural-events.js
@@ -248,17 +248,17 @@ NaturalEvents.propTypes = {
activateLayersForEventCategory: PropTypes.func,
addLayer: PropTypes.func,
defaultEventLayer: PropTypes.string,
- eventsData: PropTypes.array,
+ eventsData: PropTypes.arrayOf,
eventsDataIsLoading: PropTypes.bool,
- eventLayers: PropTypes.array,
+ eventLayers: PropTypes.arrayOf,
isKioskModeActive: PropTypes.bool,
- layers: PropTypes.array,
- selectedEvent: PropTypes.object,
+ layers: PropTypes.arrayOf,
+ selectedEvent: PropTypes.shape,
selectEventFinished: PropTypes.func,
selectDate: PropTypes.func,
toggleGroupVisibility: PropTypes.func,
- map: PropTypes.object,
- proj: PropTypes.object,
+ map: PropTypes.shape,
+ proj: PropTypes.shape,
removeGroup: PropTypes.func,
toggleVisibility: PropTypes.func,
};
diff --git a/web/js/mapUI/combineUI.js b/web/js/mapUI/combineUI.js
index b82cfb8ce..4a70d446f 100644
--- a/web/js/mapUI/combineUI.js
+++ b/web/js/mapUI/combineUI.js
@@ -129,7 +129,7 @@ function CombineUI(props) {
export default CombineUI;
CombineUI.propTypes = {
- config: PropTypes.object,
- models: PropTypes.object,
- store: PropTypes.object,
+ config: PropTypes.shape,
+ models: PropTypes.shape,
+ store: PropTypes.shape,
};
diff --git a/web/js/mapUI/components/buffer-quick-animate/bufferQuickAnimate.js b/web/js/mapUI/components/buffer-quick-animate/bufferQuickAnimate.js
index 92ea2bb77..038ebd337 100644
--- a/web/js/mapUI/components/buffer-quick-animate/bufferQuickAnimate.js
+++ b/web/js/mapUI/components/buffer-quick-animate/bufferQuickAnimate.js
@@ -83,11 +83,11 @@ export default connect(
)(BufferQuickAnimate);
BufferQuickAnimate.propTypes = {
- action: PropTypes.object,
- date: PropTypes.object,
- dateCompareState: PropTypes.object,
- lastPreloadDate: PropTypes.object,
+ action: PropTypes.shape,
+ date: PropTypes.shape,
+ dateCompareState: PropTypes.shape,
+ lastPreloadDate: PropTypes.shape,
preloaded: PropTypes.bool,
- promiseImageryState: PropTypes.object,
+ promiseImageryState: PropTypes.shape,
setPreload: PropTypes.func,
};
diff --git a/web/js/mapUI/components/create-map/createMap.js b/web/js/mapUI/components/create-map/createMap.js
index 0bc3cc7f6..86792d9a7 100644
--- a/web/js/mapUI/components/create-map/createMap.js
+++ b/web/js/mapUI/components/create-map/createMap.js
@@ -266,7 +266,7 @@ export default connect(
)(CreateMap);
CreateMap.propTypes = {
- config: PropTypes.object,
+ config: PropTypes.shape,
isMapSet: PropTypes.bool,
preloadForCompareMode: PropTypes.func,
setGranuleFootprints: PropTypes.func,
@@ -274,7 +274,7 @@ CreateMap.propTypes = {
setUI: PropTypes.func,
startLoading: PropTypes.func,
stopLoading: PropTypes.func,
- ui: PropTypes.object,
+ ui: PropTypes.shape,
updateExtent: PropTypes.func,
updateMapUI: PropTypes.func,
updateRenderedState: PropTypes.func,
diff --git a/web/js/mapUI/components/dev-test-mode/pixel-test-mode/tile-image-test-dropdown-selection.js b/web/js/mapUI/components/dev-test-mode/pixel-test-mode/tile-image-test-dropdown-selection.js
index b20214b90..e0cbb73e9 100644
--- a/web/js/mapUI/components/dev-test-mode/pixel-test-mode/tile-image-test-dropdown-selection.js
+++ b/web/js/mapUI/components/dev-test-mode/pixel-test-mode/tile-image-test-dropdown-selection.js
@@ -35,7 +35,7 @@ function TileImageTestModeDropdown({ activeLayers, layerSelection, setLayerSelec
export default TileImageTestModeDropdown;
TileImageTestModeDropdown.propTypes = {
- activeLayers: PropTypes.array,
- layerSelection: PropTypes.object,
+ activeLayers: PropTypes.arrayOf,
+ layerSelection: PropTypes.shape,
setLayerSelection: PropTypes.func,
};
diff --git a/web/js/mapUI/components/granule-hover/granuleHover.js b/web/js/mapUI/components/granule-hover/granuleHover.js
index 10a3a236d..c3e3c0b5a 100644
--- a/web/js/mapUI/components/granule-hover/granuleHover.js
+++ b/web/js/mapUI/components/granule-hover/granuleHover.js
@@ -49,7 +49,7 @@ export default connect(
)(GranuleHover);
GranuleHover.propTypes = {
- granuleFootprints: PropTypes.object,
- state: PropTypes.object,
- ui: PropTypes.object,
+ granuleFootprints: PropTypes.shape,
+ state: PropTypes.shape,
+ ui: PropTypes.shape,
};
diff --git a/web/js/mapUI/components/kiosk/kiosk-animations/kiosk-animations.js b/web/js/mapUI/components/kiosk/kiosk-animations/kiosk-animations.js
index 10218279a..586b0a078 100644
--- a/web/js/mapUI/components/kiosk/kiosk-animations/kiosk-animations.js
+++ b/web/js/mapUI/components/kiosk/kiosk-animations/kiosk-animations.js
@@ -96,7 +96,7 @@ function KioskAnimations({ ui }) {
}
KioskAnimations.propTypes = {
- ui: PropTypes.object,
+ ui: PropTypes.shape,
};
export default KioskAnimations;
diff --git a/web/js/mapUI/components/kiosk/tile-measurement/tile-measurement.js b/web/js/mapUI/components/kiosk/tile-measurement/tile-measurement.js
index ef6e2ab54..00ea860d4 100644
--- a/web/js/mapUI/components/kiosk/tile-measurement/tile-measurement.js
+++ b/web/js/mapUI/components/kiosk/tile-measurement/tile-measurement.js
@@ -260,5 +260,5 @@ function TileMeasurement({ ui }) {
export default TileMeasurement;
TileMeasurement.propTypes = {
- ui: PropTypes.object,
+ ui: PropTypes.shape,
};
diff --git a/web/js/mapUI/components/kiosk/travel-mode/travelModeColorbars.js b/web/js/mapUI/components/kiosk/travel-mode/travelModeColorbars.js
index 143976571..bca66f89e 100644
--- a/web/js/mapUI/components/kiosk/travel-mode/travelModeColorbars.js
+++ b/web/js/mapUI/components/kiosk/travel-mode/travelModeColorbars.js
@@ -98,6 +98,6 @@ function TravelModeColorbars() {
export default TravelModeColorbars;
ColorBarRow.propTypes = {
- legend: PropTypes.object,
+ legend: PropTypes.shape,
index: PropTypes.number,
};
diff --git a/web/js/mapUI/components/layers/addLayer.js b/web/js/mapUI/components/layers/addLayer.js
index 900c0b7fb..da53b60e9 100644
--- a/web/js/mapUI/components/layers/addLayer.js
+++ b/web/js/mapUI/components/layers/addLayer.js
@@ -121,14 +121,14 @@ export default React.memo(
);
AddLayer.propTypes = {
- activeLayersState: PropTypes.array,
+ activeLayersState: PropTypes.arrayOf,
activeString: PropTypes.string,
- action: PropTypes.object,
+ action: PropTypes.shape,
compareDate: PropTypes.instanceOf(Date),
- compareMapUi: PropTypes.object,
+ compareMapUi: PropTypes.shape,
mode: PropTypes.string,
preloadNextTiles: PropTypes.func,
- selected: PropTypes.object,
+ selected: PropTypes.shape,
updateLayerVisibilities: PropTypes.func,
- ui: PropTypes.object,
+ ui: PropTypes.shape,
};
diff --git a/web/js/mapUI/components/layers/removeLayer.js b/web/js/mapUI/components/layers/removeLayer.js
index 7e003bc3c..3d8033aed 100644
--- a/web/js/mapUI/components/layers/removeLayer.js
+++ b/web/js/mapUI/components/layers/removeLayer.js
@@ -51,10 +51,10 @@ export default React.memo(
);
RemoveLayer.propTypes = {
- action: PropTypes.any,
- compare: PropTypes.object,
+ action: PropTypes.shape,
+ compare: PropTypes.shape,
findLayer: PropTypes.func,
- map: PropTypes.object,
- ui: PropTypes.object,
+ map: PropTypes.shape,
+ ui: PropTypes.shape,
updateLayerVisibilities: PropTypes.func,
};
diff --git a/web/js/mapUI/components/markers/markers.js b/web/js/mapUI/components/markers/markers.js
index 342b49fa7..458e1a339 100644
--- a/web/js/mapUI/components/markers/markers.js
+++ b/web/js/mapUI/components/markers/markers.js
@@ -205,17 +205,17 @@ export default React.memo(
);
Markers.propTypes = {
- action: PropTypes.object,
- activeLayers: PropTypes.array,
- config: PropTypes.object,
- coordinates: PropTypes.array,
+ action: PropTypes.shape,
+ activeLayers: PropTypes.arrayOf,
+ config: PropTypes.shape,
+ coordinates: PropTypes.arrayOf,
isKioskModeActive: PropTypes.bool,
isMobileDevice: PropTypes.bool,
- proj: PropTypes.object,
+ proj: PropTypes.shape,
removeMarker: PropTypes.func,
- selectedMap: PropTypes.object,
- selectedMapMarkers: PropTypes.array,
+ selectedMap: PropTypes.shape,
+ selectedMapMarkers: PropTypes.arrayOf,
setGeocodeResults: PropTypes.func,
- ui: PropTypes.object,
+ ui: PropTypes.shape,
};
diff --git a/web/js/mapUI/components/mouse-move-events/mouseMoveEvents.js b/web/js/mapUI/components/mouse-move-events/mouseMoveEvents.js
index b0dd3db7f..5ba177903 100644
--- a/web/js/mapUI/components/mouse-move-events/mouseMoveEvents.js
+++ b/web/js/mapUI/components/mouse-move-events/mouseMoveEvents.js
@@ -84,13 +84,13 @@ export default connect(
)(MouseMoveEvents);
MouseMoveEvents.propTypes = {
- compareMapUi: PropTypes.object,
+ compareMapUi: PropTypes.shape,
isCoordinateSearchActive: PropTypes.bool,
isEventsTabActive: PropTypes.bool,
isMapAnimating: PropTypes.bool,
isMeasureActive: PropTypes.bool,
isMobile: PropTypes.bool,
sidebarActiveTab: PropTypes.string,
- map: PropTypes.object,
- ui: PropTypes.object,
+ map: PropTypes.shape,
+ ui: PropTypes.shape,
};
diff --git a/web/js/mapUI/components/update-date/updateDate.js b/web/js/mapUI/components/update-date/updateDate.js
index 816baef08..a6c60b7a8 100644
--- a/web/js/mapUI/components/update-date/updateDate.js
+++ b/web/js/mapUI/components/update-date/updateDate.js
@@ -169,19 +169,19 @@ export default connect(
)(UpdateDate);
UpdateDate.propTypes = {
- action: PropTypes.object,
- activeLayers: PropTypes.array,
+ action: PropTypes.shape,
+ activeLayers: PropTypes.arrayOf,
activeString: PropTypes.string,
- compareMapUi: PropTypes.object,
- config: PropTypes.object,
- dateCompareState: PropTypes.object,
+ compareMapUi: PropTypes.shape,
+ config: PropTypes.shape,
+ dateCompareState: PropTypes.shape,
getGranuleOptions: PropTypes.func,
- granuleState: PropTypes.object,
+ granuleState: PropTypes.shape,
isCompareActive: PropTypes.bool,
- layerState: PropTypes.object,
+ layerState: PropTypes.shape,
preloadNextTiles: PropTypes.func,
- state: PropTypes.object,
- ui: PropTypes.object,
+ state: PropTypes.shape,
+ ui: PropTypes.shape,
updateLayerVisibilities: PropTypes.func,
- vectorStyleState: PropTypes.object,
+ vectorStyleState: PropTypes.shape,
};
diff --git a/web/js/mapUI/components/update-opacity/updateOpacity.js b/web/js/mapUI/components/update-opacity/updateOpacity.js
index 16ef770b1..ab483fe98 100644
--- a/web/js/mapUI/components/update-opacity/updateOpacity.js
+++ b/web/js/mapUI/components/update-opacity/updateOpacity.js
@@ -101,12 +101,12 @@ export default connect(
)(UpdateOpacity);
UpdateOpacity.propTypes = {
- action: PropTypes.object,
- activeLayers: PropTypes.array,
+ action: PropTypes.shape,
+ activeLayers: PropTypes.arrayOf,
activeString: PropTypes.string,
- compare: PropTypes.object,
+ compare: PropTypes.shape,
findLayer: PropTypes.func,
isCompareActive: PropTypes.bool,
- ui: PropTypes.object,
+ ui: PropTypes.shape,
updateLayerVisibilities: PropTypes.func,
};
diff --git a/web/js/mapUI/components/update-projection/updateProjection.js b/web/js/mapUI/components/update-projection/updateProjection.js
index d75273754..cfbd65225 100644
--- a/web/js/mapUI/components/update-projection/updateProjection.js
+++ b/web/js/mapUI/components/update-projection/updateProjection.js
@@ -462,27 +462,27 @@ export default connect(
)(UpdateProjection);
UpdateProjection.propTypes = {
- action: PropTypes.object,
- activeLayers: PropTypes.array,
- compare: PropTypes.object,
+ action: PropTypes.shape,
+ activeLayers: PropTypes.arrayOf,
+ compare: PropTypes.shape,
compareMode: PropTypes.string,
- compareMapUi: PropTypes.object,
- config: PropTypes.object,
- dateCompareState: PropTypes.object,
+ compareMapUi: PropTypes.shape,
+ config: PropTypes.shape,
+ dateCompareState: PropTypes.shape,
fitToLeadingExtent: PropTypes.func,
getGranuleOptions: PropTypes.func,
isKioskModeActive: PropTypes.bool,
isMobile: PropTypes.bool,
- layerState: PropTypes.object,
- map: PropTypes.object,
- models: PropTypes.object,
+ layerState: PropTypes.shape,
+ map: PropTypes.shape,
+ models: PropTypes.shape,
preloadForCompareMode: PropTypes.func,
- proj: PropTypes.object,
+ proj: PropTypes.shape,
projectionTrigger: PropTypes.number,
- ui: PropTypes.object,
+ ui: PropTypes.shape,
updateExtent: PropTypes.func,
updateLayerVisibilities: PropTypes.func,
updateMapUI: PropTypes.func,
- renderedPalettes: PropTypes.object,
+ renderedPalettes: PropTypes.shape,
requestPalette: PropTypes.func,
};
diff --git a/web/js/mapUI/mapUI.js b/web/js/mapUI/mapUI.js
index a01670c4f..3ce8c4906 100644
--- a/web/js/mapUI/mapUI.js
+++ b/web/js/mapUI/mapUI.js
@@ -497,34 +497,34 @@ export default connect(
)(MapUI);
MapUI.propTypes = {
- activeLayers: PropTypes.array,
- activeLayersState: PropTypes.object,
+ activeLayers: PropTypes.arrayOf,
+ activeLayersState: PropTypes.shape,
activeString: PropTypes.string,
arrowDown: PropTypes.string,
clearPreload: PropTypes.func,
- compare: PropTypes.object,
- compareMapUi: PropTypes.object,
- config: PropTypes.object,
- dateCompareState: PropTypes.object,
- embed: PropTypes.object,
+ compare: PropTypes.shape,
+ compareMapUi: PropTypes.shape,
+ config: PropTypes.shape,
+ dateCompareState: PropTypes.shape,
+ embed: PropTypes.shape,
isEICModeActive: PropTypes.bool,
isStaticMapActive: PropTypes.bool,
isTravelModeActive: PropTypes.bool,
lastArrowDirection: PropTypes.string,
- layerQueue: PropTypes.object,
- layers: PropTypes.object,
- lastPreloadDate: PropTypes.object,
- models: PropTypes.object,
- palettes: PropTypes.object,
+ layerQueue: PropTypes.shape,
+ layers: PropTypes.shape,
+ lastPreloadDate: PropTypes.shape,
+ models: PropTypes.shape,
+ palettes: PropTypes.shape,
preloaded: PropTypes.bool,
- proj: PropTypes.object,
- renderableLayersState: PropTypes.object,
- selectedDate: PropTypes.object,
- selectedDateB: PropTypes.object,
+ proj: PropTypes.shape,
+ renderableLayersState: PropTypes.shape,
+ selectedDate: PropTypes.shape,
+ selectedDateB: PropTypes.shape,
setPreload: PropTypes.func,
setUI: PropTypes.func,
- ui: PropTypes.object,
+ ui: PropTypes.shape,
updateMapExtent: PropTypes.func,
- vectorStyles: PropTypes.object,
- vectorStylesState: PropTypes.object,
+ vectorStyles: PropTypes.shape,
+ vectorStylesState: PropTypes.shape,
};
diff --git a/web/js/util/context-menu/ContextMenu.js b/web/js/util/context-menu/ContextMenu.js
index 95878318a..cb3358a43 100644
--- a/web/js/util/context-menu/ContextMenu.js
+++ b/web/js/util/context-menu/ContextMenu.js
@@ -14,7 +14,7 @@ export default class ContextMenu extends AbstractMenu {
static propTypes = {
id: PropTypes.string.isRequired,
children: PropTypes.node.isRequired,
- data: PropTypes.object,
+ data: PropTypes.shape,
className: PropTypes.string,
hideOnLeave: PropTypes.bool,
rtl: PropTypes.bool,
@@ -24,7 +24,7 @@ export default class ContextMenu extends AbstractMenu {
preventHideOnContextMenu: PropTypes.bool,
preventHideOnResize: PropTypes.bool,
preventHideOnScroll: PropTypes.bool,
- style: PropTypes.object
+ style: PropTypes.shape
};
static defaultProps = {
diff --git a/web/js/util/context-menu/ContextMenuTrigger.js b/web/js/util/context-menu/ContextMenuTrigger.js
index 4697b1ac5..962041782 100644
--- a/web/js/util/context-menu/ContextMenuTrigger.js
+++ b/web/js/util/context-menu/ContextMenuTrigger.js
@@ -11,7 +11,7 @@ export default class ContextMenuTrigger extends Component {
static propTypes = {
id: PropTypes.string.isRequired,
children: PropTypes.node.isRequired,
- attributes: PropTypes.object,
+ attributes: PropTypes.shape,
collect: PropTypes.func,
disable: PropTypes.bool,
holdToDisplay: PropTypes.number,
diff --git a/web/js/util/context-menu/MenuItem.js b/web/js/util/context-menu/MenuItem.js
index db7409e6e..2da236d77 100644
--- a/web/js/util/context-menu/MenuItem.js
+++ b/web/js/util/context-menu/MenuItem.js
@@ -9,10 +9,10 @@ import { callIfExists, cssClasses, store } from './helpers';
export default class MenuItem extends Component {
static propTypes = {
- attributes: PropTypes.object,
+ attributes: PropTypes.shape,
children: PropTypes.node,
className: PropTypes.string,
- data: PropTypes.object,
+ data: PropTypes.shape,
disabled: PropTypes.bool,
divider: PropTypes.bool,
onClick: PropTypes.func,
diff --git a/web/js/util/context-menu/SubMenu.js b/web/js/util/context-menu/SubMenu.js
index 4150bc2ae..802deb755 100644
--- a/web/js/util/context-menu/SubMenu.js
+++ b/web/js/util/context-menu/SubMenu.js
@@ -12,7 +12,7 @@ import listener from './globalEventListener';
export default class SubMenu extends AbstractMenu {
static propTypes = {
children: PropTypes.node.isRequired,
- attributes: PropTypes.object,
+ attributes: PropTypes.shape,
title: PropTypes.node.isRequired,
className: PropTypes.string,
disabled: PropTypes.bool,
diff --git a/web/js/util/masonry.js b/web/js/util/masonry.js
index 8b03e8dbd..da5a7446f 100644
--- a/web/js/util/masonry.js
+++ b/web/js/util/masonry.js
@@ -12,8 +12,8 @@ const propTypes = {
disableImagesLoaded: PropTypes.bool,
onImagesLoaded: PropTypes.func,
updateOnEachImageLoad: PropTypes.bool,
- options: PropTypes.object,
- imagesLoadedOptions: PropTypes.object,
+ options: PropTypes.shape,
+ imagesLoadedOptions: PropTypes.shape,
elementType: PropTypes.string,
onLayoutComplete: PropTypes.func,
onRemoveComplete: PropTypes.func
diff --git a/web/js/util/reactAutocomplete.js b/web/js/util/reactAutocomplete.js
index 3de1c8f03..111993fbc 100644
--- a/web/js/util/reactAutocomplete.js
+++ b/web/js/util/reactAutocomplete.js
@@ -31,7 +31,7 @@ class Autocomplete extends React.Component {
/**
* The items to display in the dropdown menu
*/
- items: PropTypes.array.isRequired,
+ items: PropTypes.arrayOf.isRequired,
/**
* The value to display in the input field
*/
@@ -100,7 +100,7 @@ class Autocomplete extends React.Component {
* implementation. If you override `renderMenu` and you want to use
* `menuStyle` you must manually apply them (`this.props.menuStyle`).
*/
- menuStyle: PropTypes.object,
+ menuStyle: PropTypes.shape,
/**
* Arguments: `props: Object`
*
@@ -120,18 +120,18 @@ class Autocomplete extends React.Component {
* aria-autocomplete. `inputProps` is commonly used for (but not limited to)
* placeholder, event handlers (onFocus, onBlur, etc.), autoFocus, etc..
*/
- inputProps: PropTypes.object,
+ inputProps: PropTypes.shape,
/**
* Props that are applied to the element which wraps the `<input />` and
* dropdown menu elements rendered by `Autocomplete`.
*/
- wrapperProps: PropTypes.object,
+ wrapperProps: PropTypes.shape,
/**
* This is a shorthand for `wrapperProps={{ style: <your styles> }}`.
* Note that `wrapperStyle` is applied before `wrapperProps`, so the latter
* will win if it contains a `style` entry.
*/
- wrapperStyle: PropTypes.object,
+ wrapperStyle: PropTypes.shape,
/**
* Whether or not to automatically highlight the top match in the dropdown
* menu.