π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix warning about required key
Manav Rathi4cb49c0b4a43
diff --git a/web/apps/photos/src/components/Sidebar/SubscriptionCard/backgroundOverlay.tsx b/web/apps/photos/src/components/Sidebar/SubscriptionCard/backgroundOverlay.tsxdeleted file mode 100644index e69de29bb2..0000000000diff --git a/web/apps/photos/src/components/Sidebar/index.tsx b/web/apps/photos/src/components/Sidebar/index.tsxindex 6c6a57adf7..b74b10f66c 100644--- a/web/apps/photos/src/components/Sidebar/index.tsx+++ b/web/apps/photos/src/components/Sidebar/index.tsx@@ -291,48 +291,48 @@ const SubscriptionStatus: React.FC<SubscriptionStatusProps> = ({return <></>;}- const messages = [];+ let message: React.ReactElement | undefined;if (!hasAddOnBonus(userDetails.bonusData)) {if (isSubscriptionActive(userDetails.subscription)) {if (isOnFreePlan(userDetails.subscription)) {- messages.push(+ message = (<Transi18nKey={"FREE_SUBSCRIPTION_INFO"}values={{date: userDetails.subscription?.expiryTime,}}- />,+ />);} else if (isSubscriptionCancelled(userDetails.subscription)) {- messages.push(- t("RENEWAL_CANCELLED_SUBSCRIPTION_INFO", {- date: userDetails.subscription?.expiryTime,- }),- );+ message = t("RENEWAL_CANCELLED_SUBSCRIPTION_INFO", {+ date: userDetails.subscription?.expiryTime,+ });}} else {- messages.push(+ message = (<Transi18nKey={"SUBSCRIPTION_EXPIRED_MESSAGE"}components={{a: <LinkButton onClick={handleClick} />,}}- />,+ />);}}- if (hasExceededStorageQuota(userDetails) && messages.length === 0) {- messages.push(+ if (!message && hasExceededStorageQuota(userDetails)) {+ message = (<Transi18nKey={"STORAGE_QUOTA_EXCEEDED_SUBSCRIPTION_INFO"}components={{a: <LinkButton onClick={handleClick} />,}}- />,+ />);}+ if (!message) return <></>;+return (<Box px={1} pt={0.5}><Typography@@ -341,7 +341,7 @@ const SubscriptionStatus: React.FC<SubscriptionStatusProps> = ({onClick={handleClick && handleClick}sx={{ cursor: handleClick && "pointer" }}>- {messages}+ {message}</Typography></Box>);