Created
November 11, 2016 17:33
-
-
Save mauricedb/59b031f16347ead6fb0340443da65b33 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { PropTypes } from 'react'; | |
import Header from './header'; | |
import Billboard from './billboard'; | |
import GenreList from './genre-list'; | |
const MainPage = ({ user, movies, startPlaying }) => ( | |
<div> | |
<Header user={user} /> | |
<Billboard /> | |
<GenreList movies={movies} startPlaying={startPlaying} /> | |
</div> | |
); | |
MainPage.propTypes = { | |
user: PropTypes.object.isRequired, | |
movies: PropTypes.array.isRequired, | |
startPlaying: PropTypes.func.isRequired, | |
}; | |
export default MainPage; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment