Skip to content

Commit

Permalink
rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
nkdengineer committed Nov 22, 2024
1 parent 572034c commit ef84e97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/MenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -568,12 +568,12 @@ function MenuItem(
}
};

const getSubscriptpAvatarBackgroundColor = (isHover: boolean, pressed: boolean, hoverBackgroundColor: string, pressedBackgroundColor: string) => {
const getSubscriptpAvatarBackgroundColor = (isHovered: boolean, pressed: boolean, hoveredBackgroundColor: string, pressedBackgroundColor: string) => {
if (pressed) {
return pressedBackgroundColor;
}
if (isHover) {
return hoverBackgroundColor;
if (isHovered) {
return hoveredBackgroundColor;
}
};

Expand Down

0 comments on commit ef84e97

Please sign in to comment.