You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed blazorbootstrap after removing bootstrap, but in the MainLayout and NavMenu does not render the same way; I have an authorized view and NotAuthorized view (implemented with authentical and authorization on sql database). How do I convert the div classes and NavLink to blazorbootstrap? This is my first attempt at using Blazor and assistance will be greatly appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I installed blazorbootstrap after removing bootstrap, but in the MainLayout and NavMenu does not render the same way; I have an authorized view and NotAuthorized view (implemented with authentical and authorization on sql database). How do I convert the div classes and NavLink to blazorbootstrap? This is my first attempt at using Blazor and assistance will be greatly appreciated.
MainLayout.razor
@using Microsoft.AspNetCore.Components.Authorization
@using System.Security.Claims
@inherits LayoutComponentBase
@Inject AuthenticationStateProvider auth
@code {
public string email { get; set; } = "Unknown";
public string role { get; set; } = "Unknown";
NavMenu.razor
@using Microsoft.AspNetCore.Components.Authorization
@Inject NavigationManager NavigationManager
@code {
private void Logout()
{
NavigationManager.NavigateTo("logout");
}
}
I disattached my code for Git to avoid creating issues there.
Beta Was this translation helpful? Give feedback.
All reactions