From 945a8389d633da743ba5b2bc55c3ffb413fc690a Mon Sep 17 00:00:00 2001 From: zootius Date: Mon, 18 Mar 2024 11:20:26 +0000 Subject: [PATCH] Update multiple-modals.md In the file for ModalOne there was a reference to an undefined variable called `ModalService`. Looks like the `IModalService` variable defined as `Modal` should actually be `ModalService`. --- docs/docs/usage/multiple-modals.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/docs/usage/multiple-modals.md b/docs/docs/usage/multiple-modals.md index 60bc7571..76120822 100644 --- a/docs/docs/usage/multiple-modals.md +++ b/docs/docs/usage/multiple-modals.md @@ -11,9 +11,9 @@ In the following example, `ModalOne` is displayed from the `Homepage` component. @code { - [CascadingParameter] IModalService Modal { get; set; } = default!; + [CascadingParameter] IModalService ModalService { get; set; } = default!; - private void ShowModal() => Modal.Show("First Modal"); + private void ShowModal() => ModalService.Show("First Modal"); } ``` @@ -27,7 +27,7 @@ In the following example, `ModalOne` is displayed from the `Homepage` component. @code { [CascadingParameter] BlazoredModalInstance ModalOne { get; set; } = default!; - [CascadingParameter] IModalService Modal { get; set; } = default!; + [CascadingParameter] IModalService ModalService { get; set; } = default!; private async Task ShowModalTwo() { @@ -51,4 +51,4 @@ In the following example, `ModalOne` is displayed from the `Homepage` component. private async Task Close() => await ModalTwo.CloseAsync(); } -``` \ No newline at end of file +```