Skip to content

Commit

Permalink
Consolidate GitHub link info
Browse files Browse the repository at this point in the history
  • Loading branch information
codemonkey85 committed Feb 22, 2025
1 parent a333d66 commit 0ac6214
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Pkmds.Web/Components/Layout/MainLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@
: "Light")"/>
<MudButton Class="d-none d-md-flex"
EndIcon="@Icons.Custom.Brands.GitHub"
Href="https://github.com/codemonkey85/PKMDS-Blazor"
Href="@GitHubRepoLink"
Target="_blank"
title="Source code on GitHub"
title="@GitHubTooltip"
Color="@Color.Inherit"
Variant="@Variant.Outlined">
Source code on GitHub
</MudButton>
<MudIconButton Class="d-md-none"
Icon="@Icons.Custom.Brands.GitHub"
Href="https://github.com/codemonkey85/PKMDS-Blazor"
Href="@GitHubRepoLink"
Target="_blank"
title="Source code on GitHub"
title="@GitHubTooltip"
Color="@Color.Inherit"
Variant="@Variant.Outlined"/>
</MudStack>
Expand Down
4 changes: 4 additions & 0 deletions Pkmds.Web/Components/Layout/MainLayout.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ public partial class MainLayout : IDisposable
private bool isDarkMode;
private MudThemeProvider? mudThemeProvider;

private const string GitHubRepoLink = "https://github.com/codemonkey85/PKMDS-Blazor";

private const string GitHubTooltip = "Source code on GitHub";

protected override void OnInitialized() => RefreshService.OnAppStateChanged += StateHasChanged;

public void Dispose() => RefreshService.OnAppStateChanged -= StateHasChanged;
Expand Down

0 comments on commit 0ac6214

Please sign in to comment.