diff --git a/client/src/components/landing/index.js b/client/src/components/landing/index.tsx similarity index 74% rename from client/src/components/landing/index.js rename to client/src/components/landing/index.tsx index e4541719e5..98cf3be81f 100644 --- a/client/src/components/landing/index.js +++ b/client/src/components/landing/index.tsx @@ -1,6 +1,5 @@ import { Grid } from '@freecodecamp/react-bootstrap'; -import PropTypes from 'prop-types'; -import React from 'react'; +import React, { ReactElement } from 'react'; import Helmet from 'react-helmet'; import { useTranslation } from 'react-i18next'; @@ -11,11 +10,7 @@ import Testimonials from './components/testimonials'; import './landing.css'; -const propTypes = { - page: PropTypes.string -}; - -export const Landing = ({ page = 'landing' }) => { +function Landing(): ReactElement { const { t } = useTranslation(); return ( @@ -25,20 +20,19 @@ export const Landing = ({ page = 'landing' }) => {
- + - +
); -}; +} Landing.displayName = 'Landing'; -Landing.propTypes = propTypes; export default Landing;