Interactive interface for browsing global, full-resolution satellite imagery
css lint fix, proptypes fixes
Edward Plato7ae3c8ba2afe
diff --git a/web/css/modal.css b/web/css/modal.cssindex 0cb07880e..4d659069f 100644--- a/web/css/modal.css+++ b/web/css/modal.css@@ -35,5 +35,5 @@color: #000;}.dynamic-modal.modal-dialog {- position: absolute-}\ No newline at end of file+ position: absolute;+}diff --git a/web/js/components/timeline/timeline-axis/timeline-axis.js b/web/js/components/timeline/timeline-axis/timeline-axis.jsindex 0adb1a3ad..7d60910de 100644--- a/web/js/components/timeline/timeline-axis/timeline-axis.js+++ b/web/js/components/timeline/timeline-axis/timeline-axis.js@@ -690,7 +690,7 @@ class TimelineAxis extends React.Component {let animationStartDraggerLocation;let animationEndDraggerLocation;- if (this.props.startLocationDate) {+ if (this.props.animStartLocationDate) {animationStartDraggerLocation = Math.abs(frontDate.diff(this.props.animStartLocationDate, timeScale, true) * gridWidth);animationEndDraggerLocation = Math.abs(frontDate.diff(this.props.animEndLocationDate, timeScale, true) * gridWidth);}@@ -1589,8 +1589,8 @@ class TimelineAxis extends React.Component {TimelineAxis.defaultProps = {};TimelineAxis.propTypes = {- animEndLocationDate: PropTypes.date,- animStartLocationDate: PropTypes.date,+ animEndLocationDate: PropTypes.object,+ animStartLocationDate: PropTypes.object,axisWidth: PropTypes.number,changeDate: PropTypes.func,changeTimeScale: PropTypes.func,diff --git a/web/js/containers/timeline/timeline.js b/web/js/containers/timeline/timeline.jsindex bc029ef2b..e82080331 100644--- a/web/js/containers/timeline/timeline.js+++ b/web/js/containers/timeline/timeline.js@@ -473,7 +473,30 @@ Timeline.propTypes = {url: PropTypes.string.isRequired,onClose: PropTypes.func.isRequired,screenWidth: PropTypes.number,- screenHeight: PropTypes.number+ screenHeight: PropTypes.number,+ draggerSelected: PropTypes.string,+ hasSubdailyLayers: PropTypes.bool,+ customSelected: PropTypes.bool,+ compareModeActive: PropTypes.bool,+ dateFormatted: PropTypes.string,+ dateFormattedB: PropTypes.string,+ startDate: PropTypes.string,+ timelineStartDateLimit: PropTypes.string,+ endTime: PropTypes.object,+ isAnimationWidgetOpen: PropTypes.bool,+ animStartLocationDate: PropTypes.object,+ animEndLocationDate: PropTypes.object,+ axisWidth: PropTypes.number,+ selectedDate: PropTypes.object,+ timeScale: PropTypes.string,+ timeScaleChangeUnit: PropTypes.string,+ customIntervalValue: PropTypes.number,+ customIntervalZoomLevel: PropTypes.number,+ intervalChangeAmt: PropTypes.number,+ parentOffset: PropTypes.number,+ timelineEndDateLimit: PropTypes.string,+ leftArrowDisabled: PropTypes.bool,+ rightArrowDisabled: PropTypes.bool};// get axisWidth and parentOffset for axis, footer, and leftoffset calculations