[Components][m]: Slight update to props definition

This commit is contained in:
Rising Odegua
2021-05-05 15:50:52 +01:00
parent 0129921942
commit b713360ead
4 changed files with 28 additions and 39 deletions

View File

@@ -6,13 +6,12 @@ import PropTypes from 'prop-types';
* @param {string} readme parsed html of data package readme
* @returns React Component
*/
const ReadMe = ({ readmeHtml }) => {
const ReadMe = ({ readme }) => {
return (
<>
<section className="m-8" name="sample-table">
<h1 className="text-2xl font-bold mb-4">README</h1>
<div className="prose">
<div dangerouslySetInnerHTML={{ __html: readmeHtml }} />
<div dangerouslySetInnerHTML={{ __html: readme }} />
</div>
</section>
</>