mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-23 09:16:54 +00:00
Simplify root SSH keys page
This commit is contained in:
parent
2826892400
commit
da63ce45c8
|
@ -25,24 +25,10 @@ class UserDetails extends StatelessWidget {
|
||||||
if (user.type == UserType.root) {
|
if (user.type == UserType.root) {
|
||||||
return BrandHeroScreen(
|
return BrandHeroScreen(
|
||||||
hasBackButton: true,
|
hasBackButton: true,
|
||||||
heroTitle: user.login,
|
heroTitle: 'ssh.root.title'.tr(),
|
||||||
heroSubtitle: 'ssh.root.title'.tr(),
|
heroSubtitle: 'ssh.root.subtitle'.tr(),
|
||||||
children: [
|
children: [
|
||||||
_SshKeysCard(user: user),
|
_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(),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue