π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Remove unnecessary click handler
Manav Rathia1320d89ed92
diff --git a/web/apps/photos/src/components/pages/gallery/PlanSelector.tsx b/web/apps/photos/src/components/pages/gallery/PlanSelector.tsxindex 8936a20a57..c9220cbf48 100644--- a/web/apps/photos/src/components/pages/gallery/PlanSelector.tsx+++ b/web/apps/photos/src/components/pages/gallery/PlanSelector.tsx@@ -317,10 +317,7 @@ function FreeSubscriptionPlanSelectorCard({{children}{subscription && addOnBonuses.length > 0 && (<>- <AddOnBonusRows- addOnBonuses={addOnBonuses}- closeModal={closeModal}- />+ <AddOnBonusRows addOnBonuses={addOnBonuses} /><ManageSubscriptionsubscription={subscription}hasAddOnBonus={true}@@ -405,10 +402,7 @@ function PaidSubscriptionPlanSelectorCard({})}</Typography>{addOnBonuses.length > 0 && (- <AddOnBonusRows- addOnBonuses={addOnBonuses}- closeModal={closeModal}- />+ <AddOnBonusRows addOnBonuses={addOnBonuses} />)}</Box></Box>@@ -650,39 +644,24 @@ const FreePlanRow_ = styled(SpaceBetweenFlex)(({ theme }) => ({interface AddOnBonusRowsProps {addOnBonuses: Bonus[];- closeModal: () => void;}-const AddOnBonusRows: React.FC<AddOnBonusRowsProps> = ({- addOnBonuses,- closeModal,-}) => (+const AddOnBonusRows: React.FC<AddOnBonusRowsProps> = ({ addOnBonuses }) => (<>{addOnBonuses.map((bonus, i) => (- <AddOnRowContainer key={i} onClick={closeModal}>- <Typography color="text.muted">- <Trans- i18nKey={"add_on_valid_till"}- values={{- storage: formattedStorageByteSize(bonus.storage),- date: bonus.validTill,- }}- />- </Typography>- </AddOnRowContainer>+ <Typography color="text.muted" key={i} sx={{ pt: 1 }}>+ <Trans+ i18nKey={"add_on_valid_till"}+ values={{+ storage: formattedStorageByteSize(bonus.storage),+ date: bonus.validTill,+ }}+ />+ </Typography>))}</>);-const AddOnRowContainer = styled(SpaceBetweenFlex)(({ theme }) => ({- // gap: theme.spacing(1.5),- padding: theme.spacing(1, 0),- cursor: "pointer",- "&:hover .endIcon": {- backgroundColor: "rgba(255,255,255,0.08)",- },-}));-interface ManageSubscriptionProps {subscription: Subscription;hasAddOnBonus: boolean;