Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

removing distraction free exit button in kiosk mode (#4326)

Ryan Weiler32dfa1ffc923
diff --git a/web/js/containers/toolbar.js b/web/js/containers/toolbar.js
index 3e5150621..2a47be9c7 100644
--- a/web/js/containers/toolbar.js
+++ b/web/js/containers/toolbar.js
@@ -394,13 +394,14 @@ class toolbarContainer extends Component {
}
render() {
+ const { isKioskModeActive } = this.props;
return (
<ErrorBoundary>
<ButtonToolbar
id="wv-toolbar"
className="wv-toolbar"
>
- {this.renderDistractionFreeExitButton()}
+ {!isKioskModeActive && this.renderDistractionFreeExitButton()}
{this.renderLocationSearchButtonComponent()}
{this.renderShareButton()}
{this.renderProjectionButton()}
@@ -429,7 +430,7 @@ const mapStateToProps = (state) => {
sidebar,
ui,
} = state;
- const { isDistractionFreeModeActive } = ui;
+ const { isDistractionFreeModeActive, isKioskModeActive } = ui;
const { number, type } = notifications;
const { activeString } = compare;
const activeLayersForProj = getAllActiveLayers(state);
@@ -472,6 +473,7 @@ const mapStateToProps = (state) => {
visibleLayersForProj,
isRotated: Boolean(map.rotation !== 0),
isDistractionFreeModeActive,
+ isKioskModeActive,
};
};
@@ -565,6 +567,7 @@ toolbarContainer.propTypes = {
isAboutOpen: PropTypes.bool,
isCompareActive: PropTypes.bool,
isDistractionFreeModeActive: PropTypes.bool,
+ isKioskModeActive: PropTypes.bool,
isLocationSearchExpanded: PropTypes.bool,
isImageDownloadActive: PropTypes.bool,
isMobile: PropTypes.bool,