Skip to content

Commit

Permalink
fix(List): list item without action should not have a hover effect (#999
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Lisa18289 authored Nov 26, 2024
1 parent 5462b4f commit 2dc94b8
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ export const useGridItemProps = (props: P) => {
if (!accordion) {
return {
gridItemProps: {
onAction: () => {
onAction?.(data);
},
onAction: onAction
? () => {
onAction?.(data);
}
: undefined,
},
children,
};
Expand Down

0 comments on commit 2dc94b8

Please sign in to comment.