Needed to change individual pokemon routing
This commit is contained in:
parent
7f54f5b479
commit
f10e2941ab
|
|
@ -50,7 +50,7 @@
|
|||
|
||||
</div>
|
||||
|
||||
<div class="mt-3">
|
||||
<div class="mt-5">
|
||||
<PokemonEditButton PokemonId="@_pokemon.Id" />
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in New Issue