π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Inline
Manav Rathice80a002eadc
diff --git a/web/apps/photos/src/components/Sidebar/SubscriptionCard/contentOverlay/family/usageSection/index.tsx b/web/apps/photos/src/components/Sidebar/SubscriptionCard/contentOverlay/family/usageSection/index.tsxindex 4c0b1904f2..91181d98bf 100644--- a/web/apps/photos/src/components/Sidebar/SubscriptionCard/contentOverlay/family/usageSection/index.tsx+++ b/web/apps/photos/src/components/Sidebar/SubscriptionCard/contentOverlay/family/usageSection/index.tsx@@ -1,7 +1,10 @@-import { SpaceBetweenFlex } from "@ente/shared/components/Container";+import {+ FlexWrapper,+ SpaceBetweenFlex,+} from "@ente/shared/components/Container";import { Box, Stack, Typography } from "@mui/material";import { t } from "i18next";-import { Legend } from "./legend";+import { LegendIndicator } from "../../../styledComponents";import { FamilyUsageProgressBar } from "./progressBar";interface Iprops {@@ -40,3 +43,18 @@ export function FamilyUsageSection({</Box>);}++interface LegendProps {+ label: string;+ color: string;+}+function Legend({ label, color }: LegendProps) {+ return (+ <FlexWrapper>+ <LegendIndicator sx={{ color }} />+ <Typography variant="mini" fontWeight={"bold"}>+ {label}+ </Typography>+ </FlexWrapper>+ );+}diff --git a/web/apps/photos/src/components/Sidebar/SubscriptionCard/contentOverlay/family/usageSection/legend.tsx b/web/apps/photos/src/components/Sidebar/SubscriptionCard/contentOverlay/family/usageSection/legend.tsxdeleted file mode 100644index 6caaa2374d..0000000000--- a/web/apps/photos/src/components/Sidebar/SubscriptionCard/contentOverlay/family/usageSection/legend.tsx+++ /dev/null@@ -1,18 +0,0 @@-import { FlexWrapper } from "@ente/shared/components/Container";-import { Typography } from "@mui/material";-import { LegendIndicator } from "../../../styledComponents";--interface Iprops {- label: string;- color: string;-}-export function Legend({ label, color }: Iprops) {- return (- <FlexWrapper>- <LegendIndicator sx={{ color }} />- <Typography variant="mini" fontWeight={"bold"}>- {label}- </Typography>- </FlexWrapper>- );-}