Skip to content

Commit

Permalink
to save before switching
Browse files Browse the repository at this point in the history
  • Loading branch information
bhat-shubham committed Jan 10, 2025
1 parent b41272d commit 8e903d7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion pages/tools/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,13 @@ export default function Sidebar({
<DropdownMenu
key={accessorKey}
label={label}
icon={IconComponent && <IconComponent />}
icon={
IconComponent && (
<div className='icon-wrapper pr-4'>
<IconComponent />
</div>
)
}
>
{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 @@ -34,7 +34,7 @@ export default function DropdownMenu({
}}
>
{React.cloneElement(icon, {
className: 'mr-2',
className: 'mr-2 ml-2',
})}
<div className='text-slate-900 dark:text-slate-300 font-bold mr-auto'>
{label}
Expand Down

0 comments on commit 8e903d7

Please sign in to comment.