Interactive interface for browsing global, full-resolution satellite imagery
Update palette functions and add notify propTypes
ZachTRicee49ccbaaaede
diff --git a/web/js/components/image-download/notify.js b/web/js/components/image-download/notify.jsindex 2fbf8222f..6449c2aed 100644--- a/web/js/components/image-download/notify.js+++ b/web/js/components/image-download/notify.js@@ -1,4 +1,5 @@import React from 'react';+import PropTypes from 'prop-types';import { Button, ModalFooter } from 'reactstrap';export class Notify extends React.Component {@@ -21,3 +22,9 @@ export class Notify extends React.Component {);}}++Notify.propTypes = {+ accept: PropTypes.func,+ bodyText: PropTypes.string,+ cancel: PropTypes.func+};diff --git a/web/js/modules/palettes/actions.js b/web/js/modules/palettes/actions.jsindex 74c3567fb..24cb37b0d 100644--- a/web/js/modules/palettes/actions.js+++ b/web/js/modules/palettes/actions.js@@ -131,10 +131,10 @@ export function clearCustoms() {lodashForOwn(activePalettes, function(value, key) {activePalettes[key].maps.forEach((colormap, index) => {if (colormap.custom) {- dispatch(clearCustom(key, index, groupName));+ dispatch(clearCustomPalette(key, index, groupName));}if (colormap.max || colormap.min || colormap.squash) {- dispatch(setRangeAndSquash(key, props, index, groupName));+ dispatch(setThresholdRangeAndSquash(key, props, index, groupName));}});});