rename RenderMode class and adding usings

This commit is contained in:
sbwalker
2024-02-09 14:34:33 -05:00
parent f6fb3cc766
commit ea75ddfa85
6 changed files with 8 additions and 9 deletions

View File

@ -4,7 +4,7 @@ using Oqtane.Shared;
namespace Oqtane.UI
{
public static class RenderMode
public static class InteractiveRenderMode
{
public static IComponentRenderMode GetInteractiveRenderMode(string runtime, bool prerender)
{

View File

@ -9,7 +9,7 @@
else
{
<div>Render Mode: @ModuleState.RenderMode</div><br />
<RenderModeBoundary ModuleState="@ModuleState" PageState="@PageState" SiteState="@SiteState" @rendermode="@RenderMode.GetInteractiveRenderMode(PageState.Site.Runtime, PageState.Site.Prerender)" />
<RenderModeBoundary ModuleState="@ModuleState" PageState="@PageState" SiteState="@SiteState" @rendermode="InteractiveRenderMode.GetInteractiveRenderMode(PageState.Site.Runtime, PageState.Site.Prerender)" />
}
@code {

View File

@ -1,5 +0,0 @@
@namespace Oqtane.UI
@code {
// panelayouts are deprecated - this component is included for backward compatibility
}