Code cleanup

This commit is contained in:
2026-02-26 11:08:02 +01:00
parent 9036a3a157
commit e7114d8798
72 changed files with 1069 additions and 1604 deletions

View File

@@ -1,17 +1,16 @@
namespace RpgRoller.Components.Pages;
public sealed class FormState<TModel>
where TModel : new()
public sealed class FormState<TModel> where TModel : new()
{
public TModel Model { get; } = new();
public Dictionary<string, string> Errors { get; } = [];
public string? ErrorMessage { get; set; }
public void ResetValidation()
{
Errors.Clear();
ErrorMessage = null;
}
public TModel Model { get; } = new();
public Dictionary<string, string> Errors { get; } = [];
public string? ErrorMessage { get; set; }
}
public sealed class RegisterFormModel
@@ -52,4 +51,4 @@ public enum HomeViewMode
Loading,
Anonymous,
Workspace
}
}