Skip to content

Commit

Permalink
Code style refactor (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
lanedirt committed Jun 16, 2024
1 parent 7e2a754 commit a3e4544
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/AliasVault.WebApp/Auth/Components/InputTextField.razor
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@
/// <summary>
/// Gets or sets additional attributes for the input field.
/// </summary>
[Parameter(CaptureUnmatchedValues = true)] public Dictionary<string, object>? AdditionalAttributes { get; set; } = new();
[Parameter(CaptureUnmatchedValues = true)] public Dictionary<string, object?>? AdditionalAttributes { get; set; } = new();
}
20 changes: 17 additions & 3 deletions src/AliasVault.WebApp/Components/EditFormRow.razor
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,23 @@
</div>

@code {
[Parameter] public string Label { get; set; } = "Value";
[Parameter] public string Value { get; set; } = string.Empty;
[Parameter] public EventCallback<string> ValueChanged { get; set; }
/// <summary>
/// Label for the input field.
/// </summary>
[Parameter]
public string Label { get; set; } = "Value";

/// <summary>
/// Value of the input field.
/// </summary>
[Parameter]
public string Value { get; set; } = string.Empty;

/// <summary>
/// Callback that is triggered when the value changes.
/// </summary>
[Parameter]
public EventCallback<string?> ValueChanged { get; set; }

private string _inputId = Guid.NewGuid().ToString();

Expand Down

0 comments on commit a3e4544

Please sign in to comment.