diff --git a/src/Koogle.Web/Components/Layout/MainLayout.razor b/src/Koogle.Web/Components/Layout/MainLayout.razor index 29e0332..f836110 100644 --- a/src/Koogle.Web/Components/Layout/MainLayout.razor +++ b/src/Koogle.Web/Components/Layout/MainLayout.razor @@ -1,4 +1,5 @@ -@inherits FluxorLayout +@using Koogle.Web.Store.ClubState +@inherits FluxorLayout @inject IState AuthState @inject IDispatcher Dispatcher @@ -23,6 +24,8 @@ KOOGLE + + Club: @AuthState.Value.CurrentClub?.ClubName @if (AuthState.Value.IsAuthenticated) { diff --git a/src/Koogle.Web/Store/ClubState/ClubEffects.cs b/src/Koogle.Web/Store/ClubState/ClubEffects.cs index 7eb3906..bba1971 100644 --- a/src/Koogle.Web/Store/ClubState/ClubEffects.cs +++ b/src/Koogle.Web/Store/ClubState/ClubEffects.cs @@ -1,4 +1,5 @@ using Fluxor; +using Koogle.Application.DTOs; using Koogle.Application.Interfaces; namespace Koogle.Web.Store.ClubState; @@ -11,14 +12,16 @@ public class ClubEffects { private readonly IClubService _clubService; private readonly ILogger _logger; + private readonly ICurrentClubContext _cCurrentClubContext; /// /// Initializes a new instance of the ClubEffects class. /// - public ClubEffects(IClubService clubService, ILogger logger) + public ClubEffects(IClubService clubService, ILogger logger, ICurrentClubContext cCurrentClubContext) { _clubService = clubService; _logger = logger; + _cCurrentClubContext = cCurrentClubContext; } ///