π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Polish referral actions
Amana7aa1038af76
diff --git a/mobile/apps/photos/lib/ui/growth/apply_code_screen.dart b/mobile/apps/photos/lib/ui/growth/apply_code_screen.dartindex c66b29b37f..87ad48db06 100644--- a/mobile/apps/photos/lib/ui/growth/apply_code_screen.dart+++ b/mobile/apps/photos/lib/ui/growth/apply_code_screen.dart@@ -72,6 +72,7 @@ class _ApplyCodeScreenState extends State<ApplyCodeScreen> {const SizedBox(height: Spacing.xl),ButtonComponent(label: l10n.apply,+ variant: ButtonComponentVariant.primary,isDisabled: _isApplying || code.trim().length < 4,shouldShowSuccessState: false,onTap: _applyCode,diff --git a/mobile/apps/photos/lib/ui/growth/apply_code_sheet.dart b/mobile/apps/photos/lib/ui/growth/apply_code_sheet.dartindex da8c4c9a32..c6f46216de 100644--- a/mobile/apps/photos/lib/ui/growth/apply_code_sheet.dart+++ b/mobile/apps/photos/lib/ui/growth/apply_code_sheet.dart@@ -141,6 +141,7 @@ class _ApplyCodeContentState extends State<_ApplyCodeContent> {const SizedBox(height: Spacing.lg),ButtonComponent(label: l10n.apply,+ variant: ButtonComponentVariant.primary,isDisabled: !_isValid,onTap: _applyCode,),diff --git a/mobile/apps/photos/lib/ui/growth/referral_screen.dart b/mobile/apps/photos/lib/ui/growth/referral_screen.dartindex 75677e3db7..c6e626dbc9 100644--- a/mobile/apps/photos/lib/ui/growth/referral_screen.dart+++ b/mobile/apps/photos/lib/ui/growth/referral_screen.dart@@ -55,6 +55,7 @@ class _ReferralScreenState extends State<ReferralScreen> {actions: [if (referralView?.planInfo.isEnabled ?? false)IconButtonComponent(+ variant: IconButtonComponentVariant.primary,icon: HugeIcon(icon: HugeIcons.strokeRoundedShare08,color: context.componentColors.iconColor,@@ -154,45 +155,44 @@ class ReferralWidget extends StatelessWidget {),),],- MenuGroupComponent(- items: [- if (referralView.enableApplyCode)- MenuComponent(- title: l10n.applyCodeTitle,- trailing: _chevron(colors),- onTap: () async {- final result = await showApplyCodeSheet(- context,- referralView: referralView,- userDetails: userDetails,- );- if (result == true) notifyParent();- },+ if (referralView.enableApplyCode) ...[+ MenuComponent(+ title: l10n.applyCodeTitle,+ trailing: _chevron(colors),+ onTap: () async {+ final result = await showApplyCodeSheet(+ context,+ referralView: referralView,+ userDetails: userDetails,+ );+ if (result == true) notifyParent();+ },+ ),+ const SizedBox(height: Spacing.sm),+ ],+ MenuComponent(+ title: l10n.faq,+ trailing: _chevron(colors),+ onTap: () async {+ await routeToPage(+ context,+ WebPage(+ l10n.faq,+ "https://ente.com/help/photos/features/account/referral-program/",),- MenuComponent(- title: l10n.faq,- trailing: _chevron(colors),- onTap: () async {- await routeToPage(- context,- WebPage(- l10n.faq,- "https://ente.com/help/photos/features/account/referral-program/",- ),- );- },- ),- MenuComponent(- title: l10n.details,- trailing: _chevron(colors),- onTap: () async {- await routeToPage(- context,- StorageDetailsScreen(referralView, userDetails),- );- },- ),- ],+ );+ },+ ),+ const SizedBox(height: Spacing.sm),+ MenuComponent(+ title: l10n.details,+ trailing: _chevron(colors),+ onTap: () async {+ await routeToPage(+ context,+ StorageDetailsScreen(referralView, userDetails),+ );+ },),const SizedBox(height: Spacing.xxl),],