Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fix linting errors from newly merged code

Jason Kent4b20a686cd1d
diff --git a/web/js/containers/animation-widget.js b/web/js/containers/animation-widget.js
index 8171a1dcf..7b64163ba 100644
--- a/web/js/containers/animation-widget.js
+++ b/web/js/containers/animation-widget.js
@@ -3,7 +3,7 @@ import { connect } from 'react-redux';
import {
find as lodashFind,
get as lodashGet,
- cloneDeep as lodashCloneDeep
+ cloneDeep as lodashCloneDeep,
} from 'lodash';
// eslint-disable-next-line import/no-unresolved
import googleTagManager from 'googleTagManager';
diff --git a/web/js/containers/toolbar.js b/web/js/containers/toolbar.js
index 83d70bc24..36cdbb996 100644
--- a/web/js/containers/toolbar.js
+++ b/web/js/containers/toolbar.js
@@ -2,7 +2,11 @@ import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { ButtonToolbar, Button } from 'reactstrap';
-import { get as lodashGet, find as lodashFind } from 'lodash';
+import {
+ get as lodashGet,
+ find as lodashFind,
+ cloneDeep as lodashCloneDeep,
+} from 'lodash';
import Promise from 'bluebird';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import {
@@ -14,7 +18,6 @@ import Projection from './projection';
import InfoList from './info';
import ShareLinks from './share';
import ErrorBoundary from './error-boundary';
-import { get as lodashGet, find as lodashFind, cloneDeep as lodashCloneDeep } from 'lodash';
import {
requestNotifications,
setNotifications,
@@ -87,7 +90,9 @@ class toolbarContainer extends Component {
}
openImageDownload() {
- const { openModal, hasCustomPalette, isRotated, hasGraticule, activePalettes, rotation, refreshStateAfterImageDownload } = this.props;
+ const {
+ openModal, hasCustomPalette, isRotated, hasGraticule, activePalettes, rotation, refreshStateAfterImageDownload,
+ } = this.props;
const paletteStore = lodashCloneDeep(activePalettes);
this.getPromise(hasCustomPalette, 'palette', clearCustoms, 'Notice').then(
@@ -106,14 +111,14 @@ class toolbarContainer extends Component {
).then(() => {
openModal(
'TOOLBAR_SNAPSHOT',
- Object.assign({}, CUSTOM_MODAL_PROPS.TOOLBAR_SNAPSHOT,
- {
- onClose: () => {
- refreshStateAfterImageDownload(
- hasCustomPalette ? paletteStore : undefined, rotation, hasGraticule
- );
- }
- })
+ {
+ ...CUSTOM_MODAL_PROPS.TOOLBAR_SNAPSHOT,
+ onClose: () => {
+ refreshStateAfterImageDownload(
+ hasCustomPalette ? paletteStore : undefined, rotation, hasGraticule,
+ );
+ },
+ },
);
});
});