removed hard coded api key

This commit is contained in:
andres alcocer
2020-05-15 15:02:57 -04:00
parent 3faffa603a
commit 50d2c1dfad
15 changed files with 29 additions and 37 deletions

View File

@@ -15,8 +15,7 @@ class Documentaries extends Component {
// Call getMoviesRows function only when we get the data back
// from the API through redux
if (this.props.movies.data) {
const url =
'/discover/tv?api_key=224ce27b38a3805ecf6f6c36eb3ba9d0&with_genres=99';
const url = `/discover/tv?api_key=${process.env.API_KEY}&with_genres=99`;
movies = getMovieRows(this.props.movies.data, url);
}
return (