Skip to content

Commit

Permalink
Rating
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitish Kumar Sahu committed Jan 15, 2019
1 parent 5e70bd9 commit ba50f0d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
5 changes: 3 additions & 2 deletions src/containers/film-detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ class FilmDetail extends Component {
}
return (
<div>
<h4> Details For : </h4>
<h4> Details For : <div> <b>{this.props.film.title}</b> </div> </h4>
<hr />
<div> <b>{this.props.film.title}</b> </div>

<div> Actor: {this.props.film.actor} </div>
<div> Rating: {this.props.film.rating} </div>
</div>
);
}
Expand Down
14 changes: 7 additions & 7 deletions src/reducers/reducer_films.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
export default function() {
return [
{ title: 'Titanic', actor: 'Leonardo Dicaprio'},
{ title: 'Men In Black', actor: 'Will Smith'},
{ title: 'Pirates Of the Carribean', actor: 'Jhonny Depp'},
{ title: 'Black Swan', actor: 'Natalie Portman'},
{ title: 'Forest Grump', actor: 'Tom hanks'},
{ title: 'Lucy', actor: 'Scarlett Johansson'},
{ title: 'The Hunger Games', actor: 'Jennifer Lawrence'}
{ title: 'Titanic', actor: 'Leonardo Dicaprio', rating: 4.5},
{ title: 'Men In Black', actor: 'Will Smith', rating: 4.9},
{ title: 'Pirates Of the Carribean', actor: 'Jhonny Depp', rating: 4.1},
{ title: 'Black Swan', actor: 'Natalie Portman', rating: 4.5},
{ title: 'Forest Grump', actor: 'Tom hanks', rating: 4.2},
{ title: 'Lucy', actor: 'Scarlett Johansson', rating: 4.5},
{ title: 'The Hunger Games', actor: 'Jennifer Lawrence', rating: 4.5}
]
}

0 comments on commit ba50f0d

Please sign in to comment.