From 356f094f53051d7e0e392e11876697efb454f48f Mon Sep 17 00:00:00 2001 From: Inex Code Date: Mon, 11 Nov 2024 04:10:55 +0300 Subject: [PATCH] refactor(ui): Rename providers_page_card.dart --- ...provider_screen_card.dart => providers_page_card.dart} | 4 ++-- lib/ui/pages/providers/providers.dart | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) rename lib/ui/molecules/cards/{provider_screen_card.dart => providers_page_card.dart} (96%) diff --git a/lib/ui/molecules/cards/provider_screen_card.dart b/lib/ui/molecules/cards/providers_page_card.dart similarity index 96% rename from lib/ui/molecules/cards/provider_screen_card.dart rename to lib/ui/molecules/cards/providers_page_card.dart index ee309bfc..698677a7 100644 --- a/lib/ui/molecules/cards/provider_screen_card.dart +++ b/lib/ui/molecules/cards/providers_page_card.dart @@ -3,8 +3,8 @@ import 'package:gap/gap.dart'; import 'package:selfprivacy/logic/models/state_types.dart'; import 'package:selfprivacy/ui/atoms/masks/icon_status_mask.dart'; -class ProviderScreenCard extends StatelessWidget { - const ProviderScreenCard({ +class ProvidersPageCard extends StatelessWidget { + const ProvidersPageCard({ required this.state, required this.icon, required this.title, diff --git a/lib/ui/pages/providers/providers.dart b/lib/ui/pages/providers/providers.dart index df44655d..683915c6 100644 --- a/lib/ui/pages/providers/providers.dart +++ b/lib/ui/pages/providers/providers.dart @@ -10,7 +10,7 @@ import 'package:selfprivacy/logic/cubit/server_installation/server_installation_ import 'package:selfprivacy/logic/models/state_types.dart'; import 'package:selfprivacy/ui/atoms/icons/brand_icons.dart'; import 'package:selfprivacy/ui/molecules/cards/not_ready_card.dart'; -import 'package:selfprivacy/ui/molecules/cards/provider_screen_card.dart'; +import 'package:selfprivacy/ui/molecules/cards/providers_page_card.dart'; import 'package:selfprivacy/ui/molecules/cards/server_outdated_card.dart'; import 'package:selfprivacy/ui/organisms/headers/brand_header.dart'; import 'package:selfprivacy/ui/router/router.dart'; @@ -89,7 +89,7 @@ class _ProvidersPageState extends State { ), const SizedBox(height: 16), ], - ProviderScreenCard( + ProvidersPageCard( state: getServerStatus(), icon: BrandIcons.server, title: 'server.card_title'.tr(), @@ -101,7 +101,7 @@ class _ProvidersPageState extends State { : null, ), const SizedBox(height: 16), - ProviderScreenCard( + ProvidersPageCard( state: getDnsStatus(), icon: BrandIcons.globe, title: 'domain.screen_title'.tr(), @@ -113,7 +113,7 @@ class _ProvidersPageState extends State { : null, ), const SizedBox(height: 16), - ProviderScreenCard( + ProvidersPageCard( state: isBackupInitialized ? StateType.stable : StateType.uninitialized,