From 16acace648ce0a852e8ea17dee30b61a92fb0184 Mon Sep 17 00:00:00 2001 From: Rhythm Bhiwani Date: Sat, 2 Mar 2024 20:00:47 +0530 Subject: [PATCH 1/2] 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()}>
  • - + From 7a90fa472d0a666d28de6b58fa83e3cdeea225a0 Mon Sep 17 00:00:00 2001 From: Rhythm Bhiwani Date: Sun, 3 Mar 2024 15:05:04 +0530 Subject: [PATCH 2/2] Changed span to div --- frontend/src/components/v2/Menu/Menu.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/v2/Menu/Menu.tsx b/frontend/src/components/v2/Menu/Menu.tsx index 8987cda78..dd3407557 100644 --- a/frontend/src/components/v2/Menu/Menu.tsx +++ b/frontend/src/components/v2/Menu/Menu.tsx @@ -42,7 +42,7 @@ export const MenuItem = ({ const iconRef = useRef(); return ( - iconRef.current?.play()} onMouseLeave={() => iconRef.current?.stop()}> +
    iconRef.current?.play()} onMouseLeave={() => iconRef.current?.stop()}>
  • ({ {description && {description}}
  • - + ); };