This commit is contained in:
Manav Rathi 2025-01-22 14:43:25 +05:30
parent 3782165155
commit c19119afc4
No known key found for this signature in database
2 changed files with 2 additions and 12 deletions

View File

@ -185,7 +185,7 @@ const _colors = {
muted: "rgba(0 0 0 / 0.12)",
faint: "rgba(0 0 0 / 0.04)",
// TODO(LM): Different from Figma.
faintHover: "rgba(0 20 0 / 0.06)",
faintHover: "rgba(0 0 0 / 0.01)",
fainter: "rgba(0 0 0 / 0.02)",
},
stroke: {

View File

@ -107,13 +107,6 @@ export const EnteMenuItem: React.FC<EnteMenuItemProps> = ({
onClick();
};
const handleIconClick = () => {
if (variant != "toggle") {
return;
}
onClick();
};
const labelOrDefault = label ?? "";
return (
@ -177,10 +170,7 @@ export const EnteMenuItem: React.FC<EnteMenuItemProps> = ({
<VerticallyCenteredFlex gap={"4px"}>
{endIcon && endIcon}
{variant == "toggle" && (
<EnteSwitch
checked={checked}
onClick={handleIconClick}
/>
<EnteSwitch {...{ checked, onClick }} />
)}
</VerticallyCenteredFlex>
</SpaceBetweenFlex>