diff --git a/src/Otchinslator/Components/Layout/MainLayout.razor b/src/Otchinslator/Components/Layout/MainLayout.razor index de0949a..720bd93 100644 --- a/src/Otchinslator/Components/Layout/MainLayout.razor +++ b/src/Otchinslator/Components/Layout/MainLayout.razor @@ -1,96 +1,5 @@ -@using Microsoft.AspNetCore.Components.Authorization -@inject AuthenticationStateProvider AuthenticationStateProvider -@inherits LayoutComponentBase - -@code { - private MarkupString GetLinkIfAuth(string link) => new MarkupString(AuthenticationStateProvider.GetAuthenticationStateAsync().Result.User.Identity?.IsAuthenticated == true ? link : "MicrosoftIdentity/Account/SignIn"); -} +@inherits LayoutComponentBase
-