From da63ce45c880399f163a2bfb712f203e93c79373 Mon Sep 17 00:00:00 2001 From: inexcode Date: Thu, 8 Sep 2022 18:39:49 +0300 Subject: [PATCH] Simplify root SSH keys page --- lib/ui/pages/users/user_details.dart | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/lib/ui/pages/users/user_details.dart b/lib/ui/pages/users/user_details.dart index dfa08dc6..4b1049c1 100644 --- a/lib/ui/pages/users/user_details.dart +++ b/lib/ui/pages/users/user_details.dart @@ -25,24 +25,10 @@ class UserDetails extends StatelessWidget { if (user.type == UserType.root) { return BrandHeroScreen( hasBackButton: true, - heroTitle: user.login, - heroSubtitle: 'ssh.root.title'.tr(), + heroTitle: 'ssh.root.title'.tr(), + heroSubtitle: 'ssh.root.subtitle'.tr(), children: [ _SshKeysCard(user: user), - const SizedBox(height: 8), - Padding( - padding: const EdgeInsets.all(16.0), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - const Icon(Icons.warning_amber_outlined, size: 24), - const SizedBox(height: 16), - Text( - 'ssh.root.subtitle'.tr(), - ), - ], - ), - ), ], ); }