From b14b9bfa9c890dabb5a583d2a20001c3841e367f Mon Sep 17 00:00:00 2001
From: Nate Smith
Date: Fri, 30 Nov 2018 09:14:09 +0000
Subject: [PATCH] fix lint
---
src/components/uploader/home.js | 12 +++++-------
src/components/user_page.js | 4 +++-
src/utils/ds_zoom.js | 3 ++-
3 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/src/components/uploader/home.js b/src/components/uploader/home.js
index 913aa83e..77bc599c 100644
--- a/src/components/uploader/home.js
+++ b/src/components/uploader/home.js
@@ -29,12 +29,10 @@ function createProgressTracker(progressStats, fileName, component) {
);
const percentComplete =
- (progress.sumTotalUploaded / progress.sumFilesize) * 100;
+ progress.sumTotalUploaded / progress.sumFilesize * 100;
const percentDisplay = Math.round(percentComplete);
const plural = progressStatsValues.length > 1 ? "s" : "";
- const uploadStatus = `Uploading ${
- progressStatsValues.length
- } image${plural} (${percentDisplay}%).`;
+ const uploadStatus = `Uploading ${progressStatsValues.length} image${plural} (${percentDisplay}%).`;
component.setState({
uploadProgress: percentComplete,
uploadActive: true,
@@ -479,9 +477,9 @@ export default createReactClass({
CC-BY 4.0
- , with attribution as contributors of Open Imagery Network,
- unless further specified by a specific license. All imagery
- is available to be traced in OpenStreetMap.
+ , with attribution as contributors of Open Imagery Network,
+ unless further specified by a specific license. All imagery is
+ available to be traced in OpenStreetMap.
diff --git a/src/components/user_page.js b/src/components/user_page.js
index a1e9ba07..7ae63e02 100644
--- a/src/components/user_page.js
+++ b/src/components/user_page.js
@@ -109,7 +109,9 @@ export default createReactClass({
{this.requestedUser === "current" ? (
- Edit{" "}
+
+ Edit
+ {" "}
|
) : null}
diff --git a/src/utils/ds_zoom.js b/src/utils/ds_zoom.js
index f3da3f93..fb8aadc3 100644
--- a/src/utils/ds_zoom.js
+++ b/src/utils/ds_zoom.js
@@ -76,7 +76,8 @@ export default L.Control.extend({
var link = L.DomUtil.create("button", className, container);
link.innerHTML = html;
- L.DomEvent.on(link, "mousedown dblclick", L.DomEvent.stopPropagation)
+ L.DomEvent
+ .on(link, "mousedown dblclick", L.DomEvent.stopPropagation)
.on(link, "click", L.DomEvent.stop)
.on(link, "click", fn, this)
.on(link, "click", this._refocusOnMap, this);