Initial commit
This commit is contained in:
commit
7b9f81dd64
20 changed files with 2789 additions and 0 deletions
17
src/pages/Home.jsx
Normal file
17
src/pages/Home.jsx
Normal file
|
@ -0,0 +1,17 @@
|
|||
import { useMovies } from "contexts/MoviesContext"
|
||||
import CardList from "components/CardList"
|
||||
import TopBar from "components/TopBar"
|
||||
import styles from "styles/Home.module.css"
|
||||
|
||||
const Home = () => {
|
||||
const [movies, page, search, { nextPage, setSearch }] = useMovies()
|
||||
|
||||
return (
|
||||
<div className={styles.Container}>
|
||||
<TopBar search={search} setSearch={setSearch} />
|
||||
<CardList movies={movies} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Home
|
Reference in a new issue