diff --git a/src/components/Repository/Readme.jsx b/src/components/Repository/Readme.jsx index d7395a5d..5050a4de 100644 --- a/src/components/Repository/Readme.jsx +++ b/src/components/Repository/Readme.jsx @@ -1,4 +1,5 @@ import React from 'react' +import PropTypes from 'prop-types' import remark from 'remark' import remarkReact from 'remark-react' import styles from './Readme.module.scss' @@ -19,3 +20,9 @@ export default function Readme({ object }) { ) ) } + +Readme.propTypes = { + object: PropTypes.shape({ + text: PropTypes.string.isRequired + }) +}