💄 cursor-pointer to table row

Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
haraldnilsen 2023-09-05 16:25:10 +02:00
parent 431e1bd472
commit bf107bd256
2 changed files with 4 additions and 2 deletions

View file

@ -15,6 +15,8 @@ function App() {
const [modalOpen, setModalOpen] = useState(false)
const [modalMovie, setModalMovie] = useState<movieObject | null>(null)
console.log('App mounted')
useEffect(() => {
fetch(
`http://www.omdbapi.com/?apikey=${API_MOVIE_KEY}&s=spider-man&page=${currentPage}`
@ -27,7 +29,7 @@ function App() {
})
.then(() => setLoading(false))
.catch((error) => console.log(error))
}, [currentPage])
}, [])
const calculatePages = (totalResults: number): number => {
return Math.round(totalResults / 10)