Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
smit1678 committed Nov 30, 2018
1 parent 5718ab8 commit b14b9bf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
12 changes: 5 additions & 7 deletions src/components/uploader/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -479,9 +477,9 @@ export default createReactClass({
<a href="https://creativecommons.org/licenses/by/4.0/">
CC-BY 4.0
</a>
, 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.
</p>
</div>

Expand Down
4 changes: 3 additions & 1 deletion src/components/user_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ export default createReactClass({
<li>
{this.requestedUser === "current" ? (
<span>
<a href={"/#/imagery/" + image._id + "/edit"}>Edit</a>{" "}
<a href={"/#/imagery/" + image._id + "/edit"}>
Edit
</a>{" "}
|&nbsp;
</span>
) : null}
Expand Down
3 changes: 2 additions & 1 deletion src/utils/ds_zoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b14b9bf

Please sign in to comment.