diff --git a/client/src/components/helpers/slim-width-row.tsx b/client/src/components/helpers/slim-width-row.tsx index 58df1f0ca0..95bcadb9d8 100644 --- a/client/src/components/helpers/slim-width-row.tsx +++ b/client/src/components/helpers/slim-width-row.tsx @@ -1,8 +1,13 @@ -import React from 'react'; -import PropTypes from 'prop-types'; +import React, { ReactNode } from 'react'; import { Row, Col } from '@freecodecamp/react-bootstrap'; -function SlimWidthRow({ children, ...restProps }) { +interface SlimWidthRowProps { + children: ReactNode; +} +function SlimWidthRow({ + children, + ...restProps +}: SlimWidthRowProps): JSX.Element { return ( @@ -13,8 +18,5 @@ function SlimWidthRow({ children, ...restProps }) { } SlimWidthRow.displayName = 'SlimWidthRow'; -SlimWidthRow.propTypes = { - children: PropTypes.any -}; export default SlimWidthRow;