We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4453d9f commit 6b267bdCopy full SHA for 6b267bd
src/PokemonPage.jsx
@@ -31,7 +31,7 @@ const PokemonPage = ({ previous, next }) => {
31
<div className="links">
32
{previous && <Link to={`/pokemon/${previous.name}`}>Previous</Link>}
33
<Link to="/">Home</Link>
34
- {next && <Link to={`/pokemon/${previous.name}`}>Next</Link>}
+ {next && <Link to={`/pokemon/${next.name}`}>Next</Link>}
35
</div>
36
<div className={`pokemon-page pokemon-type-${type.name}`}>
37
<div className="pokemon-image" style={{ backgroundImage: `url(${pokemon.sprites.front_default})` }} />
0 commit comments