Needed to change individual pokemon routing

This commit is contained in:
Kira Jiroux 2025-09-26 14:09:44 -04:00
parent 7f54f5b479
commit f10e2941ab
3 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@
</div>
<div class="mt-3">
<div class="mt-5">
<PokemonEditButton PokemonId="@_pokemon.Id" />
</div>
</div>

View File

@ -71,7 +71,7 @@ namespace Portfolio.WebUI.Server.Components.Component.Pokemon_Components
private void ViewPokemon(int id)
{
Navigation.NavigateTo($"/pokemon/{id}");
Navigation.NavigateTo($"/pokemonsleep/pokemon/{id}");
}
private string GetTypeImageUrl(string pokemonType)

View File

@ -1,4 +1,4 @@
@page "/pokemon/{id:int}"
@page "/pokemonsleep/pokemon/{id:int}"
@inject IPokemonService PokemonService
@inject NavigationManager Navigation
@ -20,7 +20,7 @@ else
<!-- Total Componenet-->
<div class="container">
<div class="w-75 row mt-4 m-auto">
<div class="w-75 row mt-5 m-auto">
<!-- Previous Pokemon Button -->
<div class="col-auto">