Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

some cleanup

Jason Kente60dbb51acbb
diff --git a/web/js/components/feature-alert/alert.js b/web/js/components/feature-alert/alert.js
index 1029a9e0b..277d97fcb 100644
--- a/web/js/components/feature-alert/alert.js
+++ b/web/js/components/feature-alert/alert.js
@@ -28,15 +28,13 @@ class FeaturedAlert extends React.Component {
render() {
const { showAlert } = this.state;
return (
- <>
- <AlertUtil
- isOpen={showAlert}
- iconClassName='fa fa-layer-group fa-fw'
- onClick={this.props.showModal.bind(this)}
- onDismiss={this.dismissAlert.bind(this)}
- message="Check out our new geostationary layers!"
- />
- </>
+ <AlertUtil
+ isOpen={showAlert}
+ iconClassName='fa fa-layer-group fa-fw'
+ onClick={this.props.showModal.bind(this)}
+ onDismiss={this.dismissAlert.bind(this)}
+ message="Check out our new geostationary layers!"
+ />
);
}
}
@@ -57,7 +55,6 @@ const mapDispatchToProps = (dispatch) => ({
});
FeaturedAlert.propTypes = {
- buildDate: PropTypes.number,
showModal: PropTypes.func
};
diff --git a/web/js/components/feature-alert/geostationary-modal.js b/web/js/components/feature-alert/geostationary-modal.js
index 00d7680b8..c1c0cc966 100644
--- a/web/js/components/feature-alert/geostationary-modal.js
+++ b/web/js/components/feature-alert/geostationary-modal.js
@@ -16,7 +16,7 @@ class GeostationaryModalBody extends React.Component {
render() {
return (
<div className="geostationary-modal">
- <img src="images/geostationary.gif" className="mx-auto"/>
+ <img src="images/geostationary.gif"/>
<p>
Our latest release includes new layers from geostationary satellites –
GOES East, GOES West and Himawari-8. Find these new layers in the new
@@ -71,8 +71,10 @@ const mapDispatchToProps = (dispatch) => ({
'ab=on&as=2019-09-01-T16%3A00%3A00Z&ae=2019-09-01-T17%3A40%3A00Z&al=true'
];
const urlParams = paramArr.reduce((prev, curr) => prev + curr, '');
- const location = getLocation(urlParams);
- dispatch({ type: 'REDUX-LOCATION-POP-ACTION', payload: location });
+ dispatch({
+ type: 'REDUX-LOCATION-POP-ACTION',
+ payload: getLocation(urlParams)
+ });
}
});