From ef84e97c0a5b379e43669c7bfef9e320f4f622ed Mon Sep 17 00:00:00 2001 From: nkdengineer Date: Sat, 23 Nov 2024 02:31:12 +0700 Subject: [PATCH] rename variable --- src/components/MenuItem.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/MenuItem.tsx b/src/components/MenuItem.tsx index 55a23865e445..2f9ef67eabc4 100644 --- a/src/components/MenuItem.tsx +++ b/src/components/MenuItem.tsx @@ -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; } };