Looking to make individual pokemon views but later

This commit is contained in:
Kira Jiroux 2025-04-04 15:44:03 -04:00
parent dd9b0006d3
commit 42d3a864e4
2 changed files with 10 additions and 0 deletions

View File

@ -55,6 +55,11 @@ namespace Portfolio.WebUI.Server.Components.Component
Navigation.NavigateTo($"/pokemonsleep/edit/{id}"); Navigation.NavigateTo($"/pokemonsleep/edit/{id}");
} }
private void ViewPokemon(int id)
{
Navigation.NavigateTo($"/pokemonsleep/pokemon/{id}");
}
private string GetTypeImageUrl(string pokemonType) private string GetTypeImageUrl(string pokemonType)
{ {
if (string.IsNullOrEmpty(pokemonType)) if (string.IsNullOrEmpty(pokemonType))

View File

@ -0,0 +1,5 @@
@page "/pokemonsleep/pokemon/{id:int}"
@code {
}