diff --git a/Components/Inputs/SearchButtonComponent.razor b/Components/Inputs/SearchButtonComponent.razor index aaa1d9a..f06a8b1 100644 --- a/Components/Inputs/SearchButtonComponent.razor +++ b/Components/Inputs/SearchButtonComponent.razor @@ -2,7 +2,7 @@ @inject NavigationManager NavigationManager @inject IJSRuntime JsRuntime - + + + +@code { + [Parameter] + public RenderFragment ChildContent { get; set; } = default!; + + [Parameter] + public string Id { get; set; } = default!; + + private void ButtonClicked(EventArgs eventArgs) + { + SearchService.Show(); + } +} \ No newline at end of file diff --git a/Components/Navigation/DesktopNavComponent.razor b/Components/Navigation/DesktopNavComponent.razor index 3585812..9038b4b 100644 --- a/Components/Navigation/DesktopNavComponent.razor +++ b/Components/Navigation/DesktopNavComponent.razor @@ -1,9 +1,9 @@ @inherits LayoutComponentBase -@inject INavigationService navigationService +@inject INavigationService NavigationService @implements IDisposable @{ - var visibleStyle = navigationService.GetNavigationSectionId() > 0 ? "clickOffVisible" : ""; + var visibleStyle = NavigationService.GetNavigationSectionId() > 0 ? "clickOffVisible" : ""; }
@@ -12,14 +12,14 @@