Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Deduplicate close family plan button in dashboard

ashilkn60d217ee3863
diff --git a/mobile/apps/photos/lib/ui/family/family_plan_page.dart b/mobile/apps/photos/lib/ui/family/family_plan_page.dart
index db99367d16..bf3509c209 100644
--- a/mobile/apps/photos/lib/ui/family/family_plan_page.dart
+++ b/mobile/apps/photos/lib/ui/family/family_plan_page.dart
@@ -356,22 +356,14 @@ class _FamilyPlanPageState extends State<FamilyPlanPage> {
},
),
const SizedBox(height: 12),
- ButtonWidgetV2(
- buttonType: ButtonTypeV2.tertiaryCritical,
- labelText: l10n.closeFamilyPlan,
- onTap: () async {
- unawaited(_confirmCloseFamily());
- },
- ),
],
- if (_remainingSlots == 0)
- ButtonWidgetV2(
- buttonType: ButtonTypeV2.tertiaryCritical,
- labelText: l10n.closeFamilyPlan,
- onTap: () async {
- unawaited(_confirmCloseFamily());
- },
- ),
+ ButtonWidgetV2(
+ buttonType: ButtonTypeV2.tertiaryCritical,
+ labelText: l10n.closeFamilyPlan,
+ onTap: () async {
+ unawaited(_confirmCloseFamily());
+ },
+ ),
const SizedBox(height: 16),
],
);