Code cleanup
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user