From 72cf36e033ba794db7982befa45f035b62fa6cd2 Mon Sep 17 00:00:00 2001
From: "Alberto Duarte (PWC)" <alberto.duarte.delgado@pwc.com>
Date: Mon, 9 Oct 2023 17:32:25 +0100
Subject: Changes

---
 src/components/Genre.tsx | 27 ---------------------------
 1 file changed, 27 deletions(-)
 delete mode 100644 src/components/Genre.tsx

(limited to 'src/components/Genre.tsx')

diff --git a/src/components/Genre.tsx b/src/components/Genre.tsx
deleted file mode 100644
index e63a26a..0000000
--- a/src/components/Genre.tsx
+++ /dev/null
@@ -1,27 +0,0 @@
-import { useEffect, useState } from "react"
-
-const Genres = ({id}) => {
-
-    const baseURL = 'https://api.themoviedb.org/3'
-    const API_KEY = '8216fbb9997cd81a67471e6cb5a6f2df'
-    const [genres, setGenres] = useState()
-
-    useEffect(() => {
-        fetch(`${baseURL}/movie/${id}?api_key=${API_KEY}`).then((res) => res.json()).then((data) => {
-            console.log('MOVIE', data.genres)
-            setGenres(data.genres)
-        })
-    }, [])
-
-    return (
-        <div className="text-white/60 gap-x-3 text-xs flex flex-row flex-wrap relative">
-            {genres?.map((genre) => {
-                return (
-                    <div>{genre.name}</div>
-                )
-            })}
-        </div>
-    )
-}
-
-export default Genres
\ No newline at end of file
-- 
cgit v1.2.3-54-g00ecf

