Skip to content

Commit

Permalink
Linting Fix : Converted the div element to button element for better …
Browse files Browse the repository at this point in the history
…performance
  • Loading branch information
GARY121github committed Dec 22, 2024
1 parent 3a74bb8 commit 16e5c0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/dashboard/app/(app)/audit/components/filters/filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const Filter: React.FC<Props> = ({ options, title, param }) => {
{options.map((option) => {
const isSelected = selected.includes(option.value);
return (
<div
<Button
key={option.value}
onClick={() => handleSelection(option.value, isSelected)}
onKeyDown={(e) => {
Expand Down Expand Up @@ -111,7 +111,7 @@ export const Filter: React.FC<Props> = ({ options, title, param }) => {
</div>
<span className="truncate text-ellipsis">{option.label}</span>
</CommandItem>
</div>
</Button>
);
})}
</CommandGroup>
Expand Down

0 comments on commit 16e5c0b

Please sign in to comment.