diff --git a/frontend/src/Movie/NoMovie.js b/frontend/src/Movie/NoMovie.tsx similarity index 65% rename from frontend/src/Movie/NoMovie.js rename to frontend/src/Movie/NoMovie.tsx index c886ba33b..d72d4b2b4 100644 --- a/frontend/src/Movie/NoMovie.js +++ b/frontend/src/Movie/NoMovie.tsx @@ -1,11 +1,14 @@ -import PropTypes from 'prop-types'; import React from 'react'; import Button from 'Components/Link/Button'; import { kinds } from 'Helpers/Props'; import translate from 'Utilities/String/translate'; import styles from './NoMovie.css'; -function NoMovie(props) { +interface NoMovieProps { + totalItems: number; +} + +function NoMovie(props: NoMovieProps) { const { totalItems } = props; if (totalItems > 0) { @@ -20,24 +23,16 @@ function NoMovie(props) { return (