diff --git a/FoodsharingSiegen.Server/Controls/InteractionRow.razor b/FoodsharingSiegen.Server/Controls/InteractionRow.razor
index 0cfbcd3..f4414e5 100644
--- a/FoodsharingSiegen.Server/Controls/InteractionRow.razor
+++ b/FoodsharingSiegen.Server/Controls/InteractionRow.razor
@@ -23,7 +23,7 @@
@if ((Prospect is not { Complete: true } || interaction.Type == InteractionType.Complete) && AllowInteraction)
{
- await RemoveClick.InvokeAsync(interaction.Id)" @onclick:preventDefault>
+ { if (RemoveClick != null) await RemoveClick.Invoke(interaction.Id); }" @onclick:preventDefault>
}
diff --git a/FoodsharingSiegen.Server/Controls/InteractionRow.razor.cs b/FoodsharingSiegen.Server/Controls/InteractionRow.razor.cs
index 72b5378..ecd7488 100644
--- a/FoodsharingSiegen.Server/Controls/InteractionRow.razor.cs
+++ b/FoodsharingSiegen.Server/Controls/InteractionRow.razor.cs
@@ -62,7 +62,7 @@ namespace FoodsharingSiegen.Server.Controls
/// Gets or sets the value of the remove click (ab)
///
[Parameter]
- public EventCallback RemoveClick { get; set; }
+ public Func? RemoveClick { get; set; }
///
/// Gets or sets the value of the type (ab)
diff --git a/FoodsharingSiegen.Server/Controls/ProspectContainer.razor b/FoodsharingSiegen.Server/Controls/ProspectContainer.razor
index 7373fcc..98af0db 100644
--- a/FoodsharingSiegen.Server/Controls/ProspectContainer.razor
+++ b/FoodsharingSiegen.Server/Controls/ProspectContainer.razor
@@ -75,7 +75,7 @@
RemoveInteraction { get; set; }
+ [Parameter] public Func? RemoveInteraction { get; set; }
[Parameter] public ProspectStateFilter StateFilter { get; set; }
diff --git a/FoodsharingSiegen.Server/Controls/ProspectGrid.razor b/FoodsharingSiegen.Server/Controls/ProspectGrid.razor
new file mode 100644
index 0000000..56b6edf
--- /dev/null
+++ b/FoodsharingSiegen.Server/Controls/ProspectGrid.razor
@@ -0,0 +1,30 @@
+ProspectGrid
+
+@code {
+
+ [Parameter] public List? Prospects { get; set; }
+
+ [Parameter] public Func? OnRemoveInteraction { get; set; }
+
+ [Parameter] public AddInteractionModal InteractionModal { get; set; } = null!;
+
+ [Parameter] public AddProspectModal? ProspectModal { get; set; } = null!;
+
+ [Parameter] public ProspectStateFilter StateFilter { get; set; }
+
+}
+@(Prospects?.Count ?? 0) Einträge
+
+@if (Prospects?.Any() == true)
+{
+
+}
\ No newline at end of file
diff --git a/FoodsharingSiegen.Server/Pages/Prospects.razor b/FoodsharingSiegen.Server/Pages/Prospects.razor
index 93714ee..3dbaad0 100644
--- a/FoodsharingSiegen.Server/Pages/Prospects.razor
+++ b/FoodsharingSiegen.Server/Pages/Prospects.razor
@@ -22,16 +22,13 @@
-@(filterList.Count) Einträge
-
-@if (filterList.Any())
-{
-
-}
+
+
\ No newline at end of file
diff --git a/FoodsharingSiegen.Server/Pages/Prospects.razor.cs b/FoodsharingSiegen.Server/Pages/Prospects.razor.cs
index a0e0f80..b231792 100644
--- a/FoodsharingSiegen.Server/Pages/Prospects.razor.cs
+++ b/FoodsharingSiegen.Server/Pages/Prospects.razor.cs
@@ -138,7 +138,7 @@ namespace FoodsharingSiegen.Server.Pages
/// Removes the interaction using the specified arg (a. beging, 11.04.2022)
///
/// The arg
- private async Task RemoveInteraction(Guid arg)
+ private async Task RemoveInteractionAsync(Guid arg)
{
var confirm = await Message.Confirm("Interaktion wirklich löschen?", "Bestätigen", o =>
{