Interactive interface for browsing global, full-resolution satellite imagery
add unique id, and cleanup props/proptypes
Edward Platof66eebaba7bb
diff --git a/web/js/containers/info.js b/web/js/containers/info.jsindex 7222d1aa1..3c596e206 100644--- a/web/js/containers/info.js+++ b/web/js/containers/info.js@@ -50,7 +50,8 @@ class InfoList extends Component {config,startTour,isTourActive,- isMobile+ isMobile,+ toggleDistractionFreeMode} = this.props;const feedbackAction = isMobile? { href: 'mailto:@MAIL@?subject=Feedback for @LONG_NAME@ tool' }@@ -91,7 +92,7 @@ class InfoList extends Component {iconClass: 'ui-icon far fa-eye fa-fw',id: 'distraction_free_info_item',onClick: () => {- this.props.toggleDistractionFreeMode();+ toggleDistractionFreeMode();}}];@@ -205,5 +206,6 @@ InfoList.propTypes = {notificationClick: PropTypes.func,notifications: PropTypes.object,sendFeedback: PropTypes.func,- startTour: PropTypes.func+ startTour: PropTypes.func,+ toggleDistractionFreeMode: PropTypes.func};diff --git a/web/js/containers/toolbar.js b/web/js/containers/toolbar.jsindex dd670cf28..71fd2177b 100644--- a/web/js/containers/toolbar.js+++ b/web/js/containers/toolbar.js@@ -131,8 +131,10 @@ class toolbarContainer extends Component {notificationType,notificationContentNumber,config,+ isDistractionFreeModeActive,isImageDownloadActive,- isCompareActive+ isCompareActive,+ toggleDistractionFreeMode} = this.props;const notificationClass = notificationType? ' wv-status-' + notificationType@@ -143,13 +145,12 @@ class toolbarContainer extends Component {id="wv-toolbar"className={'wv-toolbar'}>- {/* add custom distraction free mode icon, template, modal ? */}- { this.props.isDistractionFreeModeActive+ { isDistractionFreeModeActive? <Button- id="wv-link-button"+ id="wv-distraction-free-mode-button"className="wv-toolbar-button"title="Toggle Distraction Free Mode"- onClick={() => this.props.toggleDistractionFreeMode() }+ onClick={() => toggleDistractionFreeMode() }><i className="far fa-eye fa-2x" /></Button>@@ -310,11 +311,13 @@ toolbarContainer.propTypes = {hasCustomPalette: PropTypes.bool,hasGraticule: PropTypes.bool,isCompareActive: PropTypes.bool,+ isDistractionFreeModeActive: PropTypes.bool,isImageDownloadActive: PropTypes.bool,isRotated: PropTypes.bool,notificationContentNumber: PropTypes.number,notificationType: PropTypes.string,notify: PropTypes.func,openModal: PropTypes.func,- requestNotifications: PropTypes.func+ requestNotifications: PropTypes.func,+ toggleDistractionFreeMode: PropTypes.func};