diff --git a/web/packages/shared/components/Menu/EnteMenuItem.tsx b/web/packages/shared/components/Menu/EnteMenuItem.tsx index 95e1cb0df8..ba5d63babd 100644 --- a/web/packages/shared/components/Menu/EnteMenuItem.tsx +++ b/web/packages/shared/components/Menu/EnteMenuItem.tsx @@ -148,17 +148,25 @@ const CaptionedText: React.FC = ({ mainText, caption, color, -}) => { - const subTextColor = color == "critical" ? "critical.main" : "text.faint"; - return ( - - {mainText} - - {"•"} - - - {caption} - - - ); -}; +}) => ( + + {mainText} + {"•"} + {caption} + +); + +const CaptionTypography: React.FC< + React.PropsWithChildren<{ color: EnteMenuItemProps["color"] }> +> = ({ color, children }) => ( + + {children} + +);