Skip to content

Commit

Permalink
added proper icons to each filter on tools page
Browse files Browse the repository at this point in the history
  • Loading branch information
bhat-shubham committed Jan 10, 2025
1 parent 8e903d7 commit 3ff4de1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions pages/tools/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,7 @@ export default function Sidebar({
<DropdownMenu
key={accessorKey}
label={label}
icon={
IconComponent && (
<div className='icon-wrapper pr-4'>
<IconComponent />
</div>
)
}
icon={IconComponent && <IconComponent />}
>
{filterCriteria[accessorKey as FilterCriteriaFields]
?.map(String)
Expand Down
2 changes: 1 addition & 1 deletion pages/tools/components/ui/DropdownMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function DropdownMenu({
}, [router]);

return (
<div className='my-2 bg-slate-200 dark:bg-slate-900 p-2 rounded'>
<div className='my-2 bg-slate-200 dark:bg-slate-900 p-2 rounded cursor-pointer'>
<div
className='w-full flex justify-between items-center align-middle'
onClick={() => {
Expand Down

0 comments on commit 3ff4de1

Please sign in to comment.