diff --git a/packages/libs/components/src/components/plotControls/EzTimeFilter.tsx b/packages/libs/components/src/components/plotControls/EzTimeFilter.tsx index 04253b7e7f..4d49344a49 100755 --- a/packages/libs/components/src/components/plotControls/EzTimeFilter.tsx +++ b/packages/libs/components/src/components/plotControls/EzTimeFilter.tsx @@ -102,7 +102,7 @@ function EzTimeFilter(props: EzTimeFilterProps) { [setSelectedRange] ); - // Cancel pending onBrushEnd request when this component is unmounted + // Cancel any pending onBrushChange requests when this component is unmounted useEffect(() => { return () => { onBrushChange.cancel(); diff --git a/packages/libs/eda/src/lib/map/analysis/DraggableTimeFilter.tsx b/packages/libs/eda/src/lib/map/analysis/DraggableTimeFilter.tsx index ad9a2159b6..5751f12cfb 100755 --- a/packages/libs/eda/src/lib/map/analysis/DraggableTimeFilter.tsx +++ b/packages/libs/eda/src/lib/map/analysis/DraggableTimeFilter.tsx @@ -1,5 +1,6 @@ -import { useMemo, useEffect, useCallback } from 'react'; +import { useMemo, useCallback } from 'react'; import { DraggablePanel } from '@veupathdb/coreui/lib/components/containers'; +import { Toggle } from '@veupathdb/coreui'; import EzTimeFilter, { EZTimeFilterDataProp, } from '@veupathdb/components/lib/components/plotControls/EzTimeFilter'; @@ -162,11 +163,12 @@ export default function DraggableTimeFilter({ display: 'grid', gridTemplateColumns: '1fr repeat(1, auto) 1fr', gridColumnGap: '5px', + padding: '0 10px 0 10px', justifyContent: 'center', alignItems: 'center', }} > -