Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Restore color

Manav Rathiac10ce7bff70
diff --git a/web/packages/shared/components/Menu/EnteMenuItem.tsx b/web/packages/shared/components/Menu/EnteMenuItem.tsx
index 92e1b75edd..e4c4b3f472 100644
--- a/web/packages/shared/components/Menu/EnteMenuItem.tsx
+++ b/web/packages/shared/components/Menu/EnteMenuItem.tsx
@@ -78,6 +78,10 @@ export const EnteMenuItem: React.FC<EnteMenuItemProps> = ({
p: 0,
borderRadius: "4px",
}),
+ variant !== "captioned" &&
+ ((theme) => ({
+ color: theme.palette[color].main,
+ })),
variant !== "secondary" &&
variant !== "mini" &&
((theme) => ({
@@ -140,15 +144,15 @@ const CaptionedText: React.FC<CaptionedTextProps> = ({
return (
<VerticallyCenteredFlex gap={"4px"}>
<Typography>{mainText}</Typography>
- <Typography variant="small" color={subTextColor}>
+ <Typography variant="small" sx={{ color: subTextColor }}>
{"β€’"}
</Typography>
{subText ? (
- <Typography variant="small" color={subTextColor}>
+ <Typography variant="small" sx={{ color: subTextColor }}>
{subText}
</Typography>
) : (
- <Typography variant="small" color={subTextColor}>
+ <Typography variant="small" sx={{ color: subTextColor }}>
{subIcon}
</Typography>
)}