Skip to content

Commit

Permalink
remove event filter button
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanweiler92 committed Aug 11, 2023
1 parent be585fb commit 3d69a1c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 1 addition & 3 deletions web/js/components/timeline/mobile-date-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,11 @@ function MobileDatePicker(props) {
const displayDate = getDisplayDate(date, hasSubdailyLayers);
const headerTime = getHeaderTime(time, hasSubdailyLayers);

console.log(isEmbedModeActive)

return (
time && (
<>
<div
className={"mobile-date-picker-select-btn"}
className="mobile-date-picker-select-btn"
onClick={handleClickDateButton}
>
<div className="mobile-date-picker-select-btn-text">
Expand Down
2 changes: 1 addition & 1 deletion web/js/containers/sidebar/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function Events(props) {
</div>
<Button
id="event-filter-button"
className="filter-button"
className={isEmbedModeActive ? 'filter-button-hidden' : 'filter-button'}
aria-label="Filtered layer search"
onClick={openFilterModal}
color="primary"
Expand Down
4 changes: 4 additions & 0 deletions web/scss/features/event-filter.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
display: inline-block;
vertical-align: top;
}

.filter-button-hidden {
display: none !important;
}
}

.event-filter-modal {
Expand Down

0 comments on commit 3d69a1c

Please sign in to comment.