Interactive interface for browsing global, full-resolution satellite imagery
show back button on mobile
Jason Kent1e135702f6f1
diff --git a/web/js/components/layer/product-picker/header.js b/web/js/components/layer/product-picker/header.jsindex fafb2efa7..0add785dc 100644--- a/web/js/components/layer/product-picker/header.js+++ b/web/js/components/layer/product-picker/header.js@@ -59,12 +59,12 @@ class ProductPickerHeader extends React.Component {filterByAvailable,isMobile} = this.props;+ const isSearching = listType === 'search';const categoryId = category && category.id;- const isBreadCrumb = categoryId !== 'featured-all' &&+ const showBackButton = categoryId !== 'featured-all' &&selectedProjection === 'geographic' &&- listType !== 'category' &&- width > 650;- const isSearching = listType === 'search';+ listType !== 'category';+ const isBreadCrumb = showBackButton && !isSearching && width > 650;const BreadcrubEl =<Breadcrumb tag="nav" className="layer-bread-crumb"><BreadcrumbItem@@ -83,7 +83,7 @@ class ProductPickerHeader extends React.Component {return (<><InputGroup id="layer-search" className="layer-search">- {isBreadCrumb &&+ {showBackButton &&<><ButtonclassName="back-button"@@ -92,7 +92,7 @@ class ProductPickerHeader extends React.Component {><i className="fa fa-arrow-left" />{' '}</Button>- {!isSearching && BreadcrubEl}+ {isBreadCrumb && BreadcrubEl}</>}{isSearching && isMobile &&