refactored Header component

This commit is contained in:
andres alcocer
2021-10-07 12:59:45 -04:00
parent f3ac25f825
commit 5f7afb7e46
11 changed files with 287 additions and 236 deletions

View File

@@ -8,10 +8,7 @@ const Home = () => {
const [toggleModal, setToggleModal] = useState(false)
const [movieOverview, setMovieOverview] = useState({})
/* Get the appropriate details for a specific movie that was clicked */
const selectMovieHandler = async (movie) => {
console.log('movei is', movie)
setToggleModal(true)
setMovieOverview(movie)
}