diff --git a/samples/KristofferStrube.Blazor.SVGEditor.WasmExample/CustomElements/AddNewNodeMenuItem.razor b/samples/KristofferStrube.Blazor.SVGEditor.WasmExample/CustomElements/AddNewNodeMenuItem.razor index d006c1a2..ea4ceb80 100644 --- a/samples/KristofferStrube.Blazor.SVGEditor.WasmExample/CustomElements/AddNewNodeMenuItem.razor +++ b/samples/KristofferStrube.Blazor.SVGEditor.WasmExample/CustomElements/AddNewNodeMenuItem.razor @@ -5,16 +5,9 @@ @code { - private string text = string.Empty; - [CascadingParameter] public required SVGEditor SVGEditor { get; set; } [Parameter] public required object Data { get; set; } - - private void AddNew() - { - Node.AddNew(SVGEditor); - } } diff --git a/samples/KristofferStrube.Blazor.SVGEditor.WasmExample/CustomElements/NodeEditor.razor.cs b/samples/KristofferStrube.Blazor.SVGEditor.WasmExample/CustomElements/NodeEditor.razor.cs index 0958cc94..8f3cd202 100644 --- a/samples/KristofferStrube.Blazor.SVGEditor.WasmExample/CustomElements/NodeEditor.razor.cs +++ b/samples/KristofferStrube.Blazor.SVGEditor.WasmExample/CustomElements/NodeEditor.razor.cs @@ -1,4 +1,3 @@ -using KristofferStrube.Blazor.SVGEditor.ShapeEditors; using Microsoft.AspNetCore.Components.Web; namespace KristofferStrube.Blazor.SVGEditor.WasmExample.CustomElements;