Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fix tour alert icons

Jason Kent84cc2fcc817b
diff --git a/web/js/components/measure-tool/measure-button.js b/web/js/components/measure-tool/measure-button.js
index 6d834eb85..70a0d5c72 100644
--- a/web/js/components/measure-tool/measure-button.js
+++ b/web/js/components/measure-tool/measure-button.js
@@ -67,7 +67,7 @@ class MeasureButton extends React.Component {
<AlertUtil
id="measurement-alert"
isOpen
- iconClassName="ruler"
+ icon="ruler"
title="Measure Tool"
message={message}
onDismiss={this.dismissAlert}
diff --git a/web/js/components/util/alert.js b/web/js/components/util/alert.js
index 13b694e66..05b57cc05 100644
--- a/web/js/components/util/alert.js
+++ b/web/js/components/util/alert.js
@@ -36,13 +36,12 @@ export default class AlertUtil extends React.Component {
id,
title,
message,
- iconClassName,
+ icon,
isOpen,
onDismiss,
onClick,
} = this.props;
- const icon = iconClassName || 'exclamation-triangle';
return (
<Alert
id={id}
@@ -54,7 +53,11 @@ export default class AlertUtil extends React.Component {
title={title}
onClick={onClick}
>
- <FontAwesomeIcon icon={icon} className="wv-alert-icon" size="1x" />
+ <FontAwesomeIcon
+ icon={icon || 'exclamation-triangle'}
+ className="wv-alert-icon"
+ size="1x"
+ />
<div className="wv-alert-message">
{message}
</div>
@@ -81,11 +84,11 @@ export default class AlertUtil extends React.Component {
}
AlertUtil.defaultProps = {
- iconClassName: '',
+ icon: '',
title: '',
};
AlertUtil.propTypes = {
- iconClassName: PropTypes.string,
+ icon: PropTypes.string,
id: PropTypes.string,
isOpen: PropTypes.bool,
message: PropTypes.string,
diff --git a/web/js/containers/tour.js b/web/js/containers/tour.js
index dc675e694..3c0a3ebc8 100644
--- a/web/js/containers/tour.js
+++ b/web/js/containers/tour.js
@@ -268,7 +268,6 @@ class Tour extends React.Component {
isOpen
timeout={10000}
onDismiss={endTour}
- iconClassName=" "
message="Sorry, this tour is no longer supported."
/>
);
@@ -281,7 +280,6 @@ class Tour extends React.Component {
isOpen
timeout={10000}
onDismiss={endTour}
- iconClassName=" "
message="To view these tours again, click the 'Explore Worldview' link in the “i” menu."
/>
);