Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

bypass `no-return-assign` errors

Jason Kent183e8ce68d0d
diff --git a/web/js/components/layer/product-picker/header.js b/web/js/components/layer/product-picker/header.js
index 89c4de3a9..e2a5fe0a8 100644
--- a/web/js/components/layer/product-picker/header.js
+++ b/web/js/components/layer/product-picker/header.js
@@ -90,16 +90,16 @@ class ProductPickerHeader extends React.Component {
<InputGroup id="layer-search" className="layer-search">
{showBackButton
&& (
- <>
- <Button
- className="back-button"
- color="secondary"
- onClick={this.revertToInitialScreen.bind(this)}
- >
- <FontAwesomeIcon icon={faArrowLeft} />
- </Button>
- {isBreadCrumb && BreadcrubEl}
- </>
+ <>
+ <Button
+ className="back-button"
+ color="secondary"
+ onClick={this.revertToInitialScreen.bind(this)}
+ >
+ <FontAwesomeIcon icon={faArrowLeft} />
+ </Button>
+ {isBreadCrumb && BreadcrubEl}
+ </>
)}
{isSearching && isMobile
&& (
@@ -122,6 +122,7 @@ class ProductPickerHeader extends React.Component {
id="layers-search-input"
value={this.state.inputValue}
placeholder="Search"
+ // eslint-disable-next-line no-return-assign
innerRef={(c) => (this._input = c)}
type="search"
autoFocus={isAutoFocus}
diff --git a/web/js/containers/sidebar/sidebar.js b/web/js/containers/sidebar/sidebar.js
index bd1ebc120..7cb58cfe2 100644
--- a/web/js/containers/sidebar/sidebar.js
+++ b/web/js/containers/sidebar/sidebar.js
@@ -180,6 +180,7 @@ class Sidebar extends React.Component {
title="Click to Reset Worldview to Defaults"
id="wv-logo"
onClick={resetWorldview}
+ // eslint-disable-next-line no-return-assign
ref={(iconElement) => (this.iconElement = iconElement)}
onWheel={wheelCallBack}
/>
@@ -239,6 +240,7 @@ class Sidebar extends React.Component {
: null}
</TabPane>
<footer
+ // eslint-disable-next-line no-return-assign
ref={(footerElement) => (this.footerElement = footerElement)}
>
<FooterContent tabTypes={tabTypes} activeTab={activeTab} />