π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Tweak
Manav Rathi8623b8323dd4
diff --git a/web/packages/shared/components/Menu/EnteMenuItem.tsx b/web/packages/shared/components/Menu/EnteMenuItem.tsxindex f3c15c24f9..48c88e0e0b 100644--- a/web/packages/shared/components/Menu/EnteMenuItem.tsx+++ b/web/packages/shared/components/Menu/EnteMenuItem.tsx@@ -131,37 +131,28 @@ interface CaptionedTextProps {color?: ButtonProps["color"];}-const CaptionedText = (props: CaptionedTextProps) => {+const CaptionedText: React.FC<CaptionedTextProps> = ({+ mainText,+ subText,+ subIcon,+ color,+}) => {+ const subTextColor = color == "critical" ? "critical.main" : "text.faint";return (<VerticallyCenteredFlex gap={"4px"}>- <Typography> {props.mainText}</Typography>- <Typography variant="small" color={getSubTextColor(props.color)}>+ <Typography>{mainText}</Typography>+ <Typography variant="small" color={subTextColor}>{"β’"}</Typography>- {props.subText ? (- <Typography- variant="small"- color={getSubTextColor(props.color)}- >- {props.subText}+ {subText ? (+ <Typography variant="small" color={subTextColor}>+ {subText}</Typography>) : (- <Typography- variant="small"- color={getSubTextColor(props.color)}- >- {props.subIcon}+ <Typography variant="small" color={subTextColor}>+ {subIcon}</Typography>)}</VerticallyCenteredFlex>);};--const getSubTextColor = (color: ButtonProps["color"]) => {- switch (color) {- case "critical":- return "critical.main";- default:- return "text.faint";- }-};