Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fixed issues introduced by eslint rule change (#6388)

christof-wittreich3de7942406e0
diff --git a/web/js/app.js b/web/js/app.js
index 8d5fd6e3a..8701fa91c 100644
--- a/web/js/app.js
+++ b/web/js/app.js
@@ -107,7 +107,7 @@ class App extends React.Component {
};
onload() {
- const { props, getScreenInfo, setVhCSSProperty } = this;
+ const { props, getScreenInfo } = this;
const { config, parameters } = props;
const state = parameters;
config.parameters = state;
@@ -138,7 +138,7 @@ class App extends React.Component {
});
getScreenInfo();
events.trigger(STARTUP);
- setVhCSSProperty();
+ App.setVhCSSProperty();
};
util.wrap(main)();
}
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 6c5730e9c..5cb7acc97 100644
--- a/web/js/components/timeline/timeline-coverage/coverage-item-list.js
+++ b/web/js/components/timeline/timeline-coverage/coverage-item-list.js
@@ -257,7 +257,7 @@ class CoverageItemList extends Component {
} = def;
const { dateInterval, startDate, endDate } = range;
- const layerPeriod = this.getFormattedTimePeriod(period);
+ const layerPeriod = CoverageItemList.getFormattedTimePeriod(period);
const rangeInterval = Number(dateInterval);
let rangeEnd;
@@ -385,7 +385,7 @@ class CoverageItemList extends Component {
if (isValidLayer) {
multipleCoverageRanges = dateRanges.length > 1;
}
- let layerPeriod = this.getFormattedTimePeriod(period);
+ let layerPeriod = CoverageItemList.getFormattedTimePeriod(period);
// get layer scale number to determine relation to current axis zoom level
const timeScaleNumber = TIME_SCALE_TO_NUMBER[timeScale];
diff --git a/web/js/components/timeline/timeline-coverage/timeline-coverage.js b/web/js/components/timeline/timeline-coverage/timeline-coverage.js
index 10ca7df4d..02a35ff44 100644
--- a/web/js/components/timeline/timeline-coverage/timeline-coverage.js
+++ b/web/js/components/timeline/timeline-coverage/timeline-coverage.js
@@ -317,7 +317,7 @@ class TimelineLayerCoveragePanel extends Component {
id={layerInfoBtnId}
aria-label={layerInfoBtnTitle}
className={layerInfoBtnId}
- onMouseDown={this.stopPropagation}
+ onMouseDown={TimelineLayerCoveragePanel.stopPropagation}
onClick={() => onInfoClick()}
>
<FontAwesomeIcon icon="question-circle" className="layer-coverage-info-button-icon" widthAuto />