mirror of
https://github.com/bitwarden/mobile
synced 2025-12-10 05:13:31 +00:00
move settings page into folder
This commit is contained in:
26
src/App/Pages/Settings/SettingsPage/SettingsPageListGroup.cs
Normal file
26
src/App/Pages/Settings/SettingsPage/SettingsPageListGroup.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Bit.App.Pages
|
||||
{
|
||||
public class SettingsPageListGroup : List<SettingsPageListItem>
|
||||
{
|
||||
public SettingsPageListGroup(List<SettingsPageListItem> groupItems, string name, bool doUpper = true)
|
||||
{
|
||||
AddRange(groupItems);
|
||||
if(string.IsNullOrWhiteSpace(name))
|
||||
{
|
||||
Name = "-";
|
||||
}
|
||||
else if(doUpper)
|
||||
{
|
||||
Name = name.ToUpperInvariant();
|
||||
}
|
||||
else
|
||||
{
|
||||
Name = name;
|
||||
}
|
||||
}
|
||||
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user