π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix
Manav Rathi551f4a848e62
diff --git a/web/packages/shared/components/Menu/EnteMenuItem.tsx b/web/packages/shared/components/Menu/EnteMenuItem.tsxindex ec16de4144..042348482b 100644--- a/web/packages/shared/components/Menu/EnteMenuItem.tsx+++ b/web/packages/shared/components/Menu/EnteMenuItem.tsx@@ -27,7 +27,11 @@ interface Iprops {fontWeight?: TypographyProps["fontWeight"];startIcon?: React.ReactNode;endIcon?: React.ReactNode;- label: string;+ /**+ * One of {@link label} or {@link labelComponent} must be specified.+ * TODO: Try and reflect this is the type.+ */+ label?: string;subText?: string;subIcon?: React.ReactNode;checked?: boolean;@@ -62,6 +66,8 @@ export function EnteMenuItem({onClick();};+ const labelOrDefault = label ?? "";+return (<MenuItemdisabled={disabled}@@ -95,17 +101,17 @@ export function EnteMenuItem({) : variant === "captioned" ? (<CaptionedTextcolor={color}- mainText={label}+ mainText={labelOrDefault}subText={subText}subIcon={subIcon}/>) : variant === "mini" ? (<Typography variant="mini" color="text.muted">- {label}+ {labelOrDefault}</Typography>) : (<Typography fontWeight={fontWeight}>- {label}+ {labelOrDefault}</Typography>)}</Box>