From 4eb5b6f8b3f686fd60479b8d56410b5c8531a544 Mon Sep 17 00:00:00 2001 From: andres alcocer Date: Wed, 6 Oct 2021 11:08:48 -0400 Subject: [PATCH] touched file --- src/containers/Home.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/containers/Home.js b/src/containers/Home.js index 152b20a..564f81e 100644 --- a/src/containers/Home.js +++ b/src/containers/Home.js @@ -10,18 +10,17 @@ class Home extends Component { toggleModal: false, /** Holds the movie information for a single movie. */ movieOverview: {}, - } - + }; /* Get the appropriate details for a specific movie that was clicked */ selectMovieHandler = async (movie) => { this.setState({ toggleModal: true }); await this.setState({ movieOverview: movie }); - } + }; closeModal = () => { this.setState({ toggleModal: false }); - } + }; render() { return ( @@ -29,9 +28,11 @@ class Home extends Component {
- + movie={this.state.movieOverview} + > @@ -39,4 +40,4 @@ class Home extends Component { } } -export default Home; \ No newline at end of file +export default Home;