From 16acace648ce0a852e8ea17dee30b61a92fb0184 Mon Sep 17 00:00:00 2001 From: Rhythm Bhiwani Date: Sat, 2 Mar 2024 20:00:47 +0530 Subject: [PATCH] Change to to avoid nested --- frontend/src/components/v2/Menu/Menu.tsx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/frontend/src/components/v2/Menu/Menu.tsx b/frontend/src/components/v2/Menu/Menu.tsx index e4771e551..8987cda78 100644 --- a/frontend/src/components/v2/Menu/Menu.tsx +++ b/frontend/src/components/v2/Menu/Menu.tsx @@ -42,27 +42,27 @@ export const MenuItem = ({ const iconRef = useRef(); return ( - iconRef.current?.play()} onMouseLeave={() => iconRef.current?.stop()}> + iconRef.current?.play()} onMouseLeave={() => iconRef.current?.stop()}>
  • - +
    {/* {icon && {icon}} */} {icon && ( @@ -81,7 +81,7 @@ export const MenuItem = ({ {description && {description}}
  • -
    + ); }; @@ -103,16 +103,16 @@ export const SubMenuItem = ({ iconRef.current?.play()} onMouseLeave={() => iconRef.current?.stop()}>
  • - +