diff --git a/Pkmds.Web/Components/BoxGrid.razor.cs b/Pkmds.Web/Components/BoxGrid.razor.cs index 9967750f..092dd6e7 100644 --- a/Pkmds.Web/Components/BoxGrid.razor.cs +++ b/Pkmds.Web/Components/BoxGrid.razor.cs @@ -15,7 +15,7 @@ private void SetSelectedPokemon(PKM? pokemon, int boxNumber, int slotNumber) => AppService.SetSelectedBoxPokemon(pokemon, boxNumber, slotNumber); private string GetStyle(int slotNumber) => AppState.SelectedBoxSlotNumber == slotNumber - ? "border: 4px solid orange; border-radius: 6px;" + ? Constants.SelectedSlotStyle : string.Empty; protected override void OnInitialized() => diff --git a/Pkmds.Web/Components/PartyGrid.razor.cs b/Pkmds.Web/Components/PartyGrid.razor.cs index ebb0fbe5..82db60eb 100644 --- a/Pkmds.Web/Components/PartyGrid.razor.cs +++ b/Pkmds.Web/Components/PartyGrid.razor.cs @@ -6,7 +6,7 @@ private void SetSelectedPokemon(PKM? pokemon, int slotNumber) => AppService.SetSelectedPartyPokemon(pokemon, slotNumber); private string GetStyle(int slotNumber) => AppState.SelectedPartySlotNumber == slotNumber - ? "border: 4px solid orange; border-radius: 6px;" + ? Constants.SelectedSlotStyle : string.Empty; protected override void OnInitialized() diff --git a/Pkmds.Web/Constants.cs b/Pkmds.Web/Constants.cs new file mode 100644 index 00000000..ea0f91c8 --- /dev/null +++ b/Pkmds.Web/Constants.cs @@ -0,0 +1,6 @@ +namespace Pkmds.Web; + +public static class Constants +{ + public const string SelectedSlotStyle = "border: 4px solid orange; border-radius: 6px;"; +}