π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Reuse
Manav Rathia52a1596911c
diff --git a/web/apps/photos/src/components/Sidebar/SubscriptionCard.tsx b/web/apps/photos/src/components/Sidebar/SubscriptionCard.tsxindex 1fc7e33c38..d0db2da6cf 100644--- a/web/apps/photos/src/components/Sidebar/SubscriptionCard.tsx+++ b/web/apps/photos/src/components/Sidebar/SubscriptionCard.tsx@@ -149,33 +149,29 @@ const StorageSection: React.FC<StorageSectionProps> = ({ usage, storage }) => {{t("storage")}</Typography><DefaultBox>- <Typography- sx={{- fontSize: "24px",- lineHeight: "30px",- fontWeight: "medium",- }}- >+ <StorageSectionSpan>{`${formattedStorageByteSize(usage, { round: true })} ${t("of",)} ${formattedStorageByteSize(storage)} ${t("used")}`}- </Typography>+ </StorageSectionSpan></DefaultBox><MobileSmallBox>- <Typography- sx={{- fontSize: "24px",- lineHeight: "30px",- fontWeight: "medium",- }}- >+ <StorageSectionSpan>{`${bytesInGB(usage)} / ${bytesInGB(storage)} ${t("storage_unit.gb")} ${t("used")}`}- </Typography>+ </StorageSectionSpan></MobileSmallBox></Box>);};+const StorageSectionSpan: React.FC<React.PropsWithChildren> = ({+ children,+}) => (+ <Typography variant="h3" component="span" sx={{ fontWeight: "medium" }}>+ {children}+ </Typography>+);+interface IndividualUsageSectionProps {usage: number;fileCount: number;