Fix a bunch of warnings

This commit is contained in:
2025-12-01 00:11:52 -05:00
parent bfaebfbb13
commit 69dd517d73
8 changed files with 24 additions and 14 deletions
+10 -2
View File
@@ -16,7 +16,7 @@
<MudTooltip Text="Delete">
<MudIconButton Icon="@Icons.Material.Outlined.Delete"
Color="Color.Error"
OnClick="() => DeleteOnClick()"/>
OnClick="HandleDeleteClick"/>
</MudTooltip>
}
</MudButtonGroup>
@@ -25,5 +25,13 @@
[Parameter] public string? DetailsHref { get; set; }
[Parameter] public string? EditHref { get; set; }
[Parameter] public Action? DeleteOnClick { get; set; }
[Parameter] public Func<Task>? DeleteOnClick { get; set; }
private async Task HandleDeleteClick()
{
if (DeleteOnClick != null)
{
await DeleteOnClick();
}
}
}