Skip to content

Commit 6b8c849

Browse files
committed
Make menu change more noticeable
1 parent d78de7a commit 6b8c849

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

assets/js/dashboard/nav-menu/filter-menu.tsx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ import {
3939
import { useMutation, useQueryClient } from '@tanstack/react-query'
4040
import { useAppNavigate } from '../navigation/use-app-navigate'
4141
import { DashboardQuery } from '../query'
42+
import { AdjustmentsHorizontalIcon } from '@heroicons/react/24/solid'
4243

4344
export function getFilterListItems({
4445
propsAvailable
@@ -315,10 +316,21 @@ export const FilterMenu = () => {
315316
}}
316317
onClick={() => setOpened((opened) => !opened)}
317318
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>
322334
}
323335
>
324336
{opened && (

0 commit comments

Comments
 (0)