Skip to content

Commit

Permalink
feat(MovieCard): add See details link
Browse files Browse the repository at this point in the history
  • Loading branch information
aneurysmjs committed Dec 26, 2017
1 parent 1d7e22a commit 907f951
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default class Header extends Component {
} else {
space = (
<NavLink
to='/'
to='/movies'
className="navbar-brand">
Back
</NavLink>
Expand Down
8 changes: 7 additions & 1 deletion src/components/MovieCard/MovieCard.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import { NavLink } from 'react-router-dom';

export default class MovieCard extends React.Component {

Expand All @@ -9,7 +10,7 @@ export default class MovieCard extends React.Component {
render() {

// Destructure the individual props
let { movieTitle, movieGenre, country, description } = this.props;
let { movieTitle, movieGenre, country, description, id } = this.props;

return (
<article className="movieCard">
Expand All @@ -25,7 +26,12 @@ export default class MovieCard extends React.Component {
<li className="list-group-item">{movieGenre}</li>
</ul>
</div>

<NavLink to={`details/${id}`}>
See Details
</NavLink>
</article>

);

}
Expand Down

0 comments on commit 907f951

Please sign in to comment.