File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ import {
39
39
import { useMutation , useQueryClient } from '@tanstack/react-query'
40
40
import { useAppNavigate } from '../navigation/use-app-navigate'
41
41
import { DashboardQuery } from '../query'
42
+ import { AdjustmentsHorizontalIcon } from '@heroicons/react/24/solid'
42
43
43
44
export function getFilterListItems ( {
44
45
propsAvailable
@@ -315,10 +316,21 @@ export const FilterMenu = () => {
315
316
} }
316
317
onClick = { ( ) => setOpened ( ( opened ) => ! opened ) }
317
318
currentOption = {
318
- < span className = "flex items-center" >
319
- < MagnifyingGlassIcon className = "block h-4 w-4" />
320
- < span className = "block ml-1" > Filter</ span >
321
- </ span >
319
+ < div className = "flex items-center gap-1 " >
320
+ { ! expandedSegment && (
321
+ < >
322
+ < MagnifyingGlassIcon className = "block h-4 w-4" />
323
+ Filter
324
+ </ >
325
+ ) }
326
+ { ! ! expandedSegment && (
327
+ < >
328
+ < AdjustmentsHorizontalIcon className = "block h-4 w-4" />
329
+ Segment
330
+ </ >
331
+ ) }
332
+ { /* <span className="block ml-1">{expandedSegment ? 'Segment' : 'Filter'}</span> */ }
333
+ </ div >
322
334
}
323
335
>
324
336
{ opened && (
You can’t perform that action at this time.
0 commit comments