Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

dont show geostationary modal on page load

Jason Kente579204fd868
diff --git a/web/js/components/feature-alert/alert.js b/web/js/components/feature-alert/alert.js
index 789de9a36..07e15d5eb 100644
--- a/web/js/components/feature-alert/alert.js
+++ b/web/js/components/feature-alert/alert.js
@@ -2,17 +2,12 @@ import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { openCustomContent } from '../../modules/modal/actions';
-import GeostationaryModalBody from './geostationary-modal';
-import AlertUtil from '../util/alert';
import util from '../../util/util';
class FeaturedAlert extends React.Component {
constructor(props) {
super(props);
- let alertHasBeenShown;
- if (util.browser.localStorage) {
- alertHasBeenShown = localStorage.getItem('featured-alert:geostationary');
- }
+ const alertHasBeenShown = true;
this.state = {
showAlert: !alertHasBeenShown
};
@@ -20,37 +15,38 @@ class FeaturedAlert extends React.Component {
dismissAlert() {
if (util.browser.localStorage) {
- localStorage.setItem('featured-alert:geostationary', true);
+ localStorage.setItem('<alert-name>', true);
}
this.setState({ showAlert: false });
}
render() {
- const { showAlert } = this.state;
- return (
- <AlertUtil
- id={'geostationary-alert'}
- 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!"
- noPortal={true}
- />
- );
+ // const { showAlert } = this.state;
+ return ('');
+ // return (
+ // <AlertUtil
+ // id={'geostationary-alert'}
+ // 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!"
+ // noPortal={true}
+ // />
+ // );
}
}
const mapDispatchToProps = (dispatch) => ({
showModal: () => {
dispatch(
- openCustomContent('geostationary_info', {
- headerText: 'New: Geostationary Layers',
+ openCustomContent('', {
+ headerText: '',
backdrop: false,
size: 'lg',
wrapClassName: '',
clickableBehindModal: true,
- bodyComponent: GeostationaryModalBody,
+ bodyComponent: undefined,
scrollable: true
})
);