Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added dynamic icons to filters in tools page[Closes #1260] #1309

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added proper icons to each filter on tools page
bhat-shubham committed Jan 10, 2025
commit 3ff4de1867b9e8d059590763d252d7acbbd99222
8 changes: 1 addition & 7 deletions pages/tools/components/Sidebar.tsx
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion pages/tools/components/ui/DropdownMenu.tsx
Original file line number Diff line number Diff line change
@@ -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={() => {