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

@@ -18,7 +18,7 @@ export default class MovieGenre extends Component {
render() {
let netflixUrl = false;
if (this.props.url === "/discover/tv?api_key=224ce27b38a3805ecf6f6c36eb3ba9d0&with_networks=213") {
if (this.props.url === `/discover/tv?api_key=${process.env.API_KEY}&with_networks=213`) {
netflixUrl = true;
}

View File

@@ -5,7 +5,7 @@ export default function MovieGenreImage(props) {
if (
props.url ===
'https://api.themoviedb.org/3/discover/tv?api_key=224ce27b38a3805ecf6f6c36eb3ba9d0&with_networks=213'
`https://api.themoviedb.org/3/discover/tv?api_key=${process.env.API_KEY}&with_networks=213`
) {
netflixUrl = true;
}